On Sat, 28 Nov 2009 22:35:30 +0900, MASAMI wrote:
Hi,
I uses geany 0.17 under Ubuntu 8.04 and geany 0.18 under Ubuntu 9.10. I have no problem for Japanese text files. Here is one sample file. This file is created by Notepad under Windows Vista, SHIFT_JIS (aka. CP932) encoding and CR+LF end of line.
- Choose File menu -> Open
- Browse directory
- Choose File
- Click Option and select encoding method as Japanese SHIFT_JIS or
CP932 5) Then click OK.
NOTE: You cannot change encoding after the file is opened. Remember Opening Japanese text file using Western encoding (CP1252,ISO8859-1,...) destroy original text code value.
You can using File->Reload As->...
You can also translate text code encoding using iconv Unix filter command before you edit it by geany.
$ iconv -f SHIFT_JIS -t UTF-8 < sample.in > sample.out
Thanks for these information.
Regards, Enrico
Thanx Enrico, this does switch the encoding, which allows me to continue using the program!
However it would be nice to see the Japanese encoding detection improved (the problem happened both on Linux and Win versions). I also find it a bit misleading to see the encoding display at the bottom when the text gets garbled when the text is actually in that encoding (and decoded wrongly).
Yo
On Sat, 28 Nov 2009 14:58:51 +0100, Enrico Tröger wrote:
On Sat, 28 Nov 2009 22:35:30 +0900, MASAMI wrote:
Hi,
I uses geany 0.17 under Ubuntu 8.04 and geany 0.18 under Ubuntu 9.10. I have no problem for Japanese text files. Here is one sample file. This file is created by Notepad under Windows Vista, SHIFT_JIS (aka. CP932) encoding and CR+LF end of line.
- Choose File menu -> Open
- Browse directory
- Choose File
- Click Option and select encoding method as Japanese SHIFT_JIS or
CP932 5) Then click OK.
NOTE: You cannot change encoding after the file is opened. Remember Opening Japanese text file using Western encoding (CP1252,ISO8859-1,...) destroy original text code value.
You can using File->Reload As->...
You can also translate text code encoding using iconv Unix filter command before you edit it by geany.
$ iconv -f SHIFT_JIS -t UTF-8 < sample.in > sample.out
Thanks for these information.
Regards, Enrico
On Sun, 29 Nov 2009 10:20:41 +0000 (UTC), Yo wrote:
Thanx Enrico, this does switch the encoding, which allows me to continue using the program!
However it would be nice to see the Japanese encoding detection improved (the problem happened both on Linux and Win versions). I also
You can tell Geany to open files with a specified encoding in different ways: - force opening all files using a specific encoding (Preferences->Files) - add a hint at the beginning of mis-detected files to let Geany know how it should handle these files (http://geany.org/manual/#in-file-encoding-specification) - just save your files in UTF-8...
find it a bit misleading to see the encoding display at the bottom when the text gets garbled when the text is actually in that encoding (and decoded wrongly).
Not sure what you mean. Could you describe in more detail and/or with a screenshot?
Regards, Enrico