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:
1. downloaded GR 1.5.1 with Java VM
2. installed it
3. downloadad GR 1.5.1 beta 1 and put it over the installation (copied new files onto old)

My log when I tried fetch albums is here:
http://www.vollen.ru/GalleryRemoteLog.txt

The other problem I have, than after (only) step 3, my updated gallery says me Image Magick and Jpegtran could not be found.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2005-12-05 13:55

I tried testing, but both your URLs seem to be offline.

--
Gallery Remote developer

 
wlad

Joined: 2005-12-01
Posts: 1
Posted: Mon, 2005-12-05 20:48

Hi! I have the same problem with russian characters. Hope you can help!

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2005-12-05 21:31

Can one of you give me the URL to your Gallery?

--
Gallery Remote developer

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Tue, 2005-12-06 07:04

Hi, currently I have only one:

http://www.konstantinivanov.info

Do you need smth else?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2005-12-06 08:42

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

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Tue, 2005-12-06 08:59

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?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2005-12-06 09:06

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

 
paradiso

Joined: 2005-12-11
Posts: 5
Posted: Sun, 2005-12-11 11:32

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]

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2005-12-11 17:25

paradiso: which version of GR are you running?

--
Gallery Remote developer

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Sun, 2005-12-11 18:20

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

 
paradiso

Joined: 2005-12-11
Posts: 5
Posted: Mon, 2005-12-12 01:10

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.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2005-12-12 12:29

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

 
paradiso

Joined: 2005-12-11
Posts: 5
Posted: Mon, 2005-12-12 13:09

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?

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Mon, 2005-12-12 15:07

2paour: have you connected my PM'ed link to gallery? it is still broken chars.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2005-12-12 16:04

I didn't get a PM, sorry.

--
Gallery Remote developer

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Mon, 2005-12-12 21:49

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

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2005-12-13 09:10

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

 
paradiso

Joined: 2005-12-11
Posts: 5
Posted: Wed, 2005-12-14 00:55

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?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2005-12-14 12:44

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

 
paradiso

Joined: 2005-12-11
Posts: 5
Posted: Wed, 2005-12-14 15:28

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!

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2005-12-14 16:26

Congrats, glad this is solved! I'll add it to the FAQ.

--
Gallery Remote developer

 
Gillinger

Joined: 2005-03-09
Posts: 35
Posted: Sun, 2005-12-18 22:27

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

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2005-12-18 22:38

Depends... which version of Gallery and GR are you using?

--
Gallery Remote developer

 
Gillinger

Joined: 2005-03-09
Posts: 35
Posted: Sun, 2005-12-25 21:01

Latest version of both

Cheers,
C

 
sunkit

Joined: 2005-08-02
Posts: 23
Posted: Fri, 2006-02-10 02:58

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.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Fri, 2006-02-10 08:38

sunkit, this should be fixed with G 2.1-RC1, which will be out today.

--
Gallery Remote developer

 
lukav

Joined: 2006-02-10
Posts: 6
Posted: Fri, 2006-02-10 13:44

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?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Fri, 2006-02-10 13:51

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

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2006-02-12 10:57

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

 
lukav

Joined: 2006-02-10
Posts: 6
Posted: Sun, 2006-02-12 12:58

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.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2006-02-12 13:15

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

 
lukav

Joined: 2006-02-10
Posts: 6
Posted: Sun, 2006-02-12 13:28

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

 
lukav

Joined: 2006-02-10
Posts: 6
Posted: Sun, 2006-02-12 15:05

I've just installed G2.1 ... but if I don't force the utf8 in GR I don't see the texts proberly ...

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2006-02-20 07:47

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

 
lukav

Joined: 2006-02-10
Posts: 6
Posted: Mon, 2006-02-20 08:46

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.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2006-02-20 09:37

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

 
lukav

Joined: 2006-02-10
Posts: 6
Posted: Mon, 2006-02-20 10:55

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

 
leipomo

Joined: 2006-04-19
Posts: 1
Posted: Wed, 2006-04-19 19:28
Gillinger wrote:
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

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

 
rokket

Joined: 2006-04-26
Posts: 2
Posted: Wed, 2006-04-26 21:14

=)http://breast-art.t2gof.info Paradiso, heh China liters so good =)

 
lai

Joined: 2006-02-25
Posts: 19
Posted: Fri, 2006-05-19 11:02

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

 
rokket

Joined: 2006-04-26
Posts: 2
Posted: Sat, 2006-05-27 23:28
Quote:
I'll update GR so that with G2 it never does escape HTML entities.

See http://about-car-loan-with-bad-credit.cmm3w.info (now U./K. no SPAM!)