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: upgraded from 1.3.2 - problem with encoding  (Read 6327 times)

0 Members and 1 Guest are viewing this topic.

xGrape

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
upgraded from 1.3.2 - problem with encoding
« on: October 11, 2006, 09:47:46 pm »

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)
Logged

xGrape

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: upgraded from 1.3.2 - problem with encoding
« Reply #1 on: October 11, 2006, 09:54:59 pm »

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."
Logged

anuro

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 15
Re: upgraded from 1.3.2 - problem with encoding
« Reply #2 on: October 12, 2006, 11:30:34 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upgraded from 1.3.2 - problem with encoding
« Reply #3 on: October 13, 2006, 03:29:29 pm »

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

anuro

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 15
Re: upgraded from 1.3.2 - problem with encoding
« Reply #4 on: October 14, 2006, 02:10:44 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upgraded from 1.3.2 - problem with encoding
« Reply #5 on: October 14, 2006, 11:11:28 am »

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

anuro

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 15
Re: upgraded from 1.3.2 - problem with encoding
« Reply #6 on: October 14, 2006, 10:41:49 pm »


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
« Last Edit: October 14, 2006, 10:48:58 pm by anuro »
Logged

Nibbler

  • Guest
Re: upgraded from 1.3.2 - problem with encoding
« Reply #7 on: October 14, 2006, 11:41:59 pm »

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.
Logged

anuro

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 15
Re: upgraded from 1.3.2 - problem with encoding
« Reply #8 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:
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
 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upgraded from 1.3.2 - problem with encoding
« Reply #9 on: October 17, 2006, 08:31:01 am »

I changed the charset code in albanian.php from utf-8 to iso8859 and I try again:
You mustn't!
Logged

anuro

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 15
Re: upgraded from 1.3.2 - problem with encoding
« Reply #10 on: October 18, 2006, 12:31:56 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.