Gallery remote UTF-8 in G2 for RU characters
Continental
Joined: 2004-06-14
Posts: 243 |
Posted: Sat, 2005-11-19 09:17 |
Again installed Gallery Remote, and again face the encoding problem. This time want to make this feature work. ;-) The problem is that Tree, file names, Albums e.t.c. are with not right encoding for russian characters. When uploading files, it's every much more problems with it. See picture: [img]http://www.vollen.ru/gr.jpg[/img] Steps I did: My log when I tried fetch albums is here: The other problem I have, than after (only) step 3, my updated gallery says me Image Magick and Jpegtran could not be found. |
|
Posts: 1479
I tried testing, but both your URLs seem to be offline.
--
Gallery Remote developer
Posts: 1
Hi! I have the same problem with russian characters. Hope you can help!
Posts: 1479
Can one of you give me the URL to your Gallery?
--
Gallery Remote developer
Posts: 243
Hi, currently I have only one:
http://www.konstantinivanov.info
Do you need smth else?
Posts: 1479
Continental: the fullscreen slideshow doesn't seem to be enabled, and when I connect without a password to your Gallery, I get latin names for your albums and pictures. How can I get the cyrilic to see the problem?
--
Gallery Remote developer
Posts: 243
Sorry. In fact I have never tried run GR to this gallery. ;-) I store latin names in primary language, and russian in multilanguage. thas's why you do not see.
@slideshow
is activated. right click and the last point above the random picture.
I p.m. you another my gallery url (in fact, I have another one), where you should see russian albums names (which are store in primary language) and primary language is russian.
hope, you can without password only in view mode? or how?
Posts: 1479
Without a password, GR will show the same thing as what can be seen through the web. That should be fine for this.
--
Gallery Remote developer
Posts: 5
hey, I'm running a gallery at http://paradiso.cn/gallery, same problem with chinese charactors.
[img]http://gallery.menalto.com/files/galler.jpg[/img]
Posts: 1479
paradiso: which version of GR are you running?
--
Gallery Remote developer
Posts: 243
Sorry for interrruption, but...2paour. please, I'd like to ask you do you solved our issue with russian characters? My GR said me 1.5b3 is the last, but I'm still using 1.5b2
Posts: 5
paour: i installed version 1.5. Then I downloaded 1.5.1-b3, and extracted the files into GR's install directory, now it shows 1.5.1-b3 in the about window. I think maybe the fix didn't work. btw, my operating system is windows 2k3 english.
Continental: I think our problems are related to the same bug.
Posts: 1479
paradiso: your Gallery is not the latest version. Please upgrade to 2.0.2 and you will most likely see the problem is fixed.
--
Gallery Remote developer
Posts: 5
paour: what i installed is http://heanet.dl.sourceforge.net/sourceforge/gallery/gallery-2.0.2-developer.tar.gz
and the donate link on my gallery shows http://gallery.sourceforge.net/donate.php?donate_tag=2.0.2
I think it should be gallery 2.0.2?
Posts: 243
2paour: have you connected my PM'ed link to gallery? it is still broken chars.
Posts: 1479
I didn't get a PM, sorry.
--
Gallery Remote developer
Posts: 243
I sent it again. If you do not receive again, please try www dot travelcamera dot ru / content/. That's is not opened site yet.
I use 2.0.2+ and 1.5.1b3
Posts: 1479
I'm uploading GR 1.5.1-b5, which fixes the problem. Thanks for giving me access to your site, which helped diagnosing the problem.
--
Gallery Remote developer
Posts: 5
paour: I still get the problems with chinese charactors in b5. I'm sure my gallery is 2.0.2. Perhaps u may check again?
btw, here is what GalleryLocal show with my gallery. All charactors are perfect. So I don't think it's a problem related to my gallery installation. Or perhaps GalleryLocal used a different way to access Gallery?
[img]http://gallery.menalto.com/files/gallocal.jpg[/img]
EDIT: I upgrade the gallery to nightly builds. Now GR shows all squares with chinese charactors in the tree but the chars in the right panel are okay. Maybe the tree list is using a wrong font. Is it possible to change the default font? btw, the chinese localized interface is awful too because of the small size of th font.
EDIT Again: All are perfect on my Chinese Windows 2K. Do you think I should change my Java settings on this English Win2k3?
Posts: 1479
paradiso, you can change the font used by Gallery to force it to use a font that is adapted to Chinese. Take a look at the defaults.properties file in the directory where GR is installed and then take a look at this FAQ entry: http://codex.gallery2.org/index.php/GalleryRemote:FAQ#Editing_preferences
--
Gallery Remote developer
Posts: 5
paour: finally i resolved this problem by adding the following lines to x:\Documents and Settings\username\.GalleryRemote\GalleryRemote.properties.
fontOverrideName=SimSun
fontOverrideSize=12
fontOverrideStyle=0
If any of these lines is absent, GR won't apply the correct font settings. For example, If I only set fontOverrideName, the font won't change.
Thanks for the help!
Posts: 1479
Congrats, glad this is solved! I'll add it to the FAQ.
--
Gallery Remote developer
Posts: 35
Not sure if this is the right thread, but I did a search and it seemed suitable to make the post here... I've got problems with umlauts (swedish characters åäöÅÄÖ) when using Gallery remote to upload. Am I doing something wrong?
Cheers,
C
Posts: 1479
Depends... which version of Gallery and GR are you using?
--
Gallery Remote developer
Posts: 35
Latest version of both
Cheers,
C
Posts: 23
paradiso,
I also have this problem like you.
I'm using Chinese win xp, GR 1.5.1-b10 and G2 2.0.2 FULL.
paour,
I also found that, if I use GR create new album in chinese name, it can show correct char instance, but after close and RE-open GR, it become symbol, pls check with attach photo.
Posts: 1479
sunkit, this should be fixed with G 2.1-RC1, which will be out today.
--
Gallery Remote developer
Posts: 6
Is it possible to make cyrillic charecters display in Remote gallery when the Gallery is v1.5.1?
Meaning can I change the charset of the Remote Gallery app to windows-1251, since this is what I'm using?
Posts: 1479
That's a good idea. I'll try to implement it. Can you PM me the URL of your server so I can test?
--
Gallery Remote developer
Posts: 1479
GR 1.5.1-b11 adds support for forcing the encoding when connecting to a Gallery.
Add forceProtocolEncoding.n=encoding in the GR preferences, where n is associated with your Gallery URL and encoding is the standard name of the encoding.
I've tested on lukav's Gallery (thanks!) with 'windows-1251' as the encoding.
--
Gallery Remote developer
Posts: 6
Thanks Paour,
it works great.
Only a few thinks ... when I add coment on a picture it's still gets with entities.
I've installed G2 for purpose of testing (same URL with 2 at the end).
I've set forceProtocolEncoding.n=utf8 and it shows the albums names right now, but new albums get with entities
comments also.
Posts: 1479
lukav:
- G2.1 (RC1 was published yesterday) doesn't need the encoding to be forced, it correcly sets the encoding to UTF-8
- can you set the test album to replicate the problem, so I can look at it?
Thanks!
--
Gallery Remote developer
Posts: 6
RE: G2.1 - I'll give it a go.
Re: G1. Sure. I've uploaded 2 images. On the first one I set the comment via GR, on the second with normal Web UI
Posts: 6
I've just installed G2.1 ... but if I don't force the utf8 in GR I don't see the texts proberly ...
Posts: 1479
lukav: so on the test album, the valley pictures has a caption that is using HTML entities: I believe that's ok on in the web browser, but it is impossible to read in GR. This is because you probably have the Allow HTML Markup in captions preference (in Upload) turned off. Could you try to turn it on, and then upload another picture, setting the caption in GR?
Regarding G2.1, I found the problem: I broke charset autosensing in b11. I've fixed it in GR 1.5.1-b12. Thanks for the heads-up.
--
Gallery Remote developer
Posts: 6
paour: I've tried setting Allow HTML Markup in captions to on, but it is the same behavour. But the problem is not in reading HTML captions, but that I don't want cyrillic charecters get in as HTML entities when I set them through GR, but as normal cyrillic charecters. The same way that new albums get set properly when I create them with GR.
Re: GR2.1. I've test the new version and now it works. I don't have to set the forceencoding.
However the problem with captions still remains, the charecters get in as HTML captions.
Posts: 1479
lukav: can you try setting Allow HTML Markup in captions to OFF? When you do that, GR is not supposed to perform entity encoding on captions when you upload files.
I'll update GR so that with G2 it never does escape HTML entities.
--
Gallery Remote developer
Posts: 6
paour: I must apolagize. my test are incorrect since I was trying to actually edit the caption, but it seems that GR doesn't supprt that ....
So here are my test with acctualy uploading images:
Allow HTML markup... = checked
G1 - caption texts get in as ????
G2 - caption texts get in normal
Allow HTML markup... = unchecked
G1 - caption texts get in as html entities
G2 - caption texts get in as html entities
Posts: 1
I have the same problem. The "umlauts" (or what ever they are called) work fine when I edit them directly from gallery2. But with GR they are total garbage.
I have 2.0.4 gallery and I have tried with 1.4.1 GR as well as latest (19th of may -06) cvs version of GR..
Posts: 2
=)http://breast-art.t2gof.info Paradiso, heh China liters so good =)
Posts: 19
username:测试
password:123
if username=chinese name (测试)
then
[img]http://gallery.menalto.com/files/namecn.jpg[/img]
my gallery url
http://www.fy007.org/photo/gallery2
username=test
password=test
sorry my bad english
Posts: 2
See http://about-car-loan-with-bad-credit.cmm3w.info (now U./K. no SPAM!)