[SOLVED] problem with accent caracters
TeHashiX
Joined: 2005-03-16
Posts: 8 |
![]() |
Hello, I've some problems with Gallery 2 Beta 1, caracters accent such as é, è, à or ù appears as chinese caracters. I configure Gallery 2 in French language. If I look on the database, caracters are ok, so I think the problem came from the frontend. What is this caracter problem and how can i resolve it ? Thank you in advance, and for the very good job you make with gallery. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Try getting the latest nightly snapshot and then reenter the characters and see if you can reproduce the problem. I made a fix recently that resolved a problem where we were not using UTF8 everywhere. |
|
TeHashiX
Joined: 2005-03-16
Posts: 8 |
![]() |
I tried to download latest version of gallery 2 with CVS. On refresh gallery prompt me for an Upgrade 0.9.0 to 0.9.3. The upgrade executed succefully. But now I've got a white screen for home page, nothing apprears. How can I resolve this problem ? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
TeHashiX, please start a new topic for your problem. |
|
TeHashiX
Joined: 2005-03-16
Posts: 8 |
![]() |
I re-try with latest CVS gallery2. Fresh installation. Gallery 2 is configured in French, accents in menus appears normal. When I create a new sub album and put accents in album title or album resumé, all accent caracters appears as chinese. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
What's the url to your G2? Can you enable comments so that we can try it from here? Thanks. |
|
bleizh
![]()
Joined: 2005-03-30
Posts: 2 |
![]() |
hi, Thank you for your help ! |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Once again, if you don't give me the url I can't debug this and you're not going to get a fix. |
|
bleizh
![]()
Joined: 2005-03-30
Posts: 2 |
![]() |
You can find a test G2 here : there are only a few photos but i mean it's enough to see how G2 works with our specials characters with accent... If you you need more, you have only to write it ! Thanks a lot for your help |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Can you give me an account with permissions to create an album? I'd like to try entering text into different fields to see if I can figure out what's going on. Thanks. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
I think that this topic is related. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
bleizh, thanks for giving me permissions to add a comment. I think that your problem is actually different than the other thread. It would appear to be an issue with storing and retrieving the data from the database in your case. This will be a little tricky to debug. Would it be possible for me to get ssh access to your box so that I can experiment with storing different values in the database? Thanks! |
|
TeHashiX
Joined: 2005-03-16
Posts: 8 |
![]() |
I'm sorry for not responding the last weeks. We can do more tests if you want. I install the latest Gallery 2 Beta 2 and the problem is still here. It seems, like you said, that it is a problem with retrieving data from database, because in mysql fields all accents characters appears in the right format. But in gallery theses accents appears as chinese characters. My gallery URL is http://tehashix.kicks-ass.org/gallery/ I know PHP langage and I would like to help you find this bug. But I don't know where to search, wich module... I will send you a username and password via PM so you could create an album and see the issues. Thank you. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Good news! I've fixed the problem. It turns out that htmlspecialchars() mangles the character set on PHP 4.1.2, so I've switched to using str_replace instead. Thanks for the access .. I've fixed it in your G2 install and have committed the fix back to CVS so it should be in the next nightly build. Thanks for giving me access, TeHashiX! |
|
Netnose
Joined: 2004-01-04
Posts: 3 |
![]() |
Hi bharat, has the problem really been solved? I got the nightly build from 04-25-2005 installed. But still the German characters like ä, ü and ö in the menu-block look very strange, as you can see here: Example: Any ideas what could cause this? Thanks in advance, |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
This is a different problem, and one I haven't seen before. It appears that the standard localized values aren't coming out correctly for you. The other problems have been because we were mangling values at upload time. Can you enable comments, or create an account that has upload permissions so that we can do more remote testing? Thanks. |
|
BigBoss
Joined: 2004-04-14
Posts: 2 |
![]() |
bharat wrote:
Good news! I've fixed the problem. It turns out that htmlspecialchars() mangles the character set on PHP 4.1.2, so I've switched to using str_replace instead. Thanks for the access .. I've fixed it in your G2 install and have committed the fix back to CVS so it should be in the next nightly build. Thanks for giving me access, TeHashiX! How did you fix it please ? I just installed a fresh new copy, not cvs, and have the problem !! |
|