Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Charset problem  (Read 6958 times)

0 Members and 1 Guest are viewing this topic.

seblin001

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
[Solved]: Charset problem
« on: May 02, 2009, 07:27:10 pm »

Hello!

I have made a search filed on my sites first page, www.uppsalabilder.se. The code to the searchfield look like this.

-------------------------------
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="se" lang="se" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<table align="left">
<form method="post" action="http://www.uppsalabilder.se/coppermine/thumbnails.php" name="searchcpg">
<input size="37" type="text" name="search" maxlength="255" value="" class="textinput" />
<input type="submit" value="Snabbsk i arkivet" class="button" />
<input type="hidden" name="album" value="search" />
<input style="display:none" type="checkbox" name="title" id="title" class="checkbox" checked="checked" />
<input style="display:none" type="checkbox" name="caption" id="caption" class="checkbox" checked="checked" />
<input style="display:none" type="checkbox" name="keywords" id="keywords" class="checkbox" checked="checked" />
</form>
</table>
--------------------------------

When i put , in Sweden vi have , in the field and klick on the search button. Coppermine read the letter as "�".
Some ideas to solve this problem.

Best regard,
Sebastian Lindberg
« Last Edit: May 04, 2009, 11:41:06 am by Joachim Mller »
Logged

Nibbler

  • Guest
Re: Charset problem
« Reply #1 on: May 02, 2009, 07:50:39 pm »

You can't put one html page inside another like that. Pages can only have one <html> tag and only one charset definition. That page is already set to iso-8859-1. You need to change that page to utf-8 for it to work.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1503
  • aka 'i-imagine'
    • Home Page
Re: Charset problem
« Reply #2 on: May 02, 2009, 08:08:13 pm »

Just another gentle reminder here:
Upgrade Your Coppermine Gallery Today!

Quote
<!--
  SVN version info:
  Coppermine version: 1.4.19
  $Revision: 4392 $
  $LastChangedBy: gaugau $
  $Date: 2008-04-16 09:25:35 +0200 (Mi, 16 Apr 2008) $
-->

You can get hacked with such an outdated version.

(and also,) the pages had an odd look with a mix of languages

seblin001

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Charset problem
« Reply #3 on: May 02, 2009, 11:01:28 pm »

Hello an thanks for all help! Now the files are converted and the database is uppgraded.

Thanks again.

Best regards,
/Sebastian
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 21 queries.