[Solved]: Charset problem [Solved]: Charset problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Charset problem

Started by seblin001, May 02, 2009, 07:27:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

seblin001

Hello!

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

-------------------------------
<!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="Snabbsök 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

Nibbler

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.

Joe Carver

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

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

Thanks again.

Best regards,
/Sebastian