Re: [greenstone-devel] OutputEncoding

From Michael Dewsnip
DateMon, 09 May 2005 10:44:15 +1200
Subject Re: [greenstone-devel] OutputEncoding
In-Reply-To (20050505074723-39477-qmail-web54205-mail-yahoo-com)

> When creating a new collection in command line, some messages are
> printed to the monitor.
> I want to see these messages in Vietnamese, so I create a new file
> called strings_vi.rb in perllib directory, which is based on
> strings_en.rb file. I modify this file like this
> /Language.code:vi
> OutputEncoding.unix:utf8
> /
> ...
> And save as UTF-8 encoding.
> But it doesn't work well. Some character I can't read in Vietnamese
> (Of course, not in command line - I create a process in C# to execute
> these perl scripts and redirect standard ouput to a textbox that
> supports unicode.) I know there's an outputencoding called
> windows_1258 for vi, but it's not better.
> Could you tell me the right outputencoding or another way to output
> message in Vietnamese (-language xx option) ?

If you've checked that the file is valid UTF-8 then I'd suspect your C#
program isn't reading in the data correctly. Have you tried it with
Russian to check this?

> By the way, some time one write utf8, some time UTF-8. How
> can I distinguish ? Is there a list or table that shows the correlation?

They are two different names for the same thing.