upgraded from 1.3.2 - problem with encoding upgraded from 1.3.2 - problem with encoding
 

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]

Main Menu

upgraded from 1.3.2 - problem with encoding

Started by xGrape, October 11, 2006, 09:47:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xGrape

I just upgraded from cpg1.3.2 to 1.4.9. Seems to work fine, but I'm having trouble with character encoding of my local characters æøå. If I use unicode, it will look alright in the interface (buttons and so on, using Norwegian language file) - but image names, descriptions, comments will be messed up. If I use western encoding, its the other way around.

Any way I can have both?:) (that is, just have all æøå's right - not using both encodings at the same time)

xGrape

Ok, I found a post about using charsetmgr.php - but I'm not quite sure how.

When I use western charset on my site, I get this error:
"The iconv function is not available. You cannot use this script. Coppermine will now run in English.
You may install iconv and start this script again. You should now proceed to the main page."

When I use unicode, it tells me there's nothing to fix:
"Your site is already configured to use utf-8. You don't need this script and should leave this page."

anuro

Yes, I woud like to write for the same issue. My problem is the same the encoding. I tried to fix the problem but finally I decided to ask help. You can see the album here and the problems with language encoding.
http://www.albemigrant.com/fotoalbum1/index.php

ANuro

Joachim Müller

Use charsetmgr.php to convert your non utf-8 textual content to utf-8.

anuro

Quote from: GauGau on October 13, 2006, 03:29:29 PM
Use charsetmgr.php to convert your non utf-8 textual content to utf-8.

I don't know how to do that. Please, can you be litle bit more exact. How to execute the script.
Thank you,
ANuro

Joachim Müller

Click the link in my above posting (you have to be logged in as admin).

anuro

#6

2/3 - Checking conversion from utf-8 to iso-8859-1
You must check that all the cells in blue are displayed properly.
String Table Column Id Query

Fatal error: Call to undefined function: iconv() in /home4/zalbemig/public_html/fotoalbum1/charsetmgr.php on line 76

Just to let you know that albanian language is allready utf-8. So I traied to convert to iso-8859-1. It is the right way?
ANuro

Nibbler

You need to convert from your regional encoding to UTF-8. If you don't have iconv then you can't do it this way.

anuro

I changed the charset code in albanian.php from utf-8 to iso8859 and I try again:
2/3 - Checking conversion from iso-8859-1 to utf-8
You must check that all the cells in blue are displayed properly.
String Table Column Id Query

Fatal error: Call to undefined function: iconv() in /home4/zalbemig/public_html/fotoalbum1/charsetmgr.php on line 76


Joachim Müller

Quote from: anuro on October 17, 2006, 07:27:20 AM
I changed the charset code in albanian.php from utf-8 to iso8859 and I try again:
You mustn't!

anuro

I know that in version 1.4, we will have to choose code utf-8 but in my case did not go. I had to give the code of the country (iso-8859-1) to fix the issue.
ANuro