GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

when open a encoding euc_jp file, Japanese text couldn't be shown right. #449

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a file that be encoded by euc_jp.
2. All the Japanese words shown wrong.
3. The attached file is the example ecu_jp file, which could be right opened
   by some other text editor, but editra.

Original issue reported on code.google.com by wis...@gmail.com on 29 Dec 2009 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

When you open it what does it show for the encoding in your status bar? On my 
machine
the default encoding is mac_roman and when its opened as mac_roman it indeed is 
shown
incorrectly but, when I go to File=>Reload with Encoding and choose ecu_jp the 
file
is reloaded and the characters are displayed correctly.

Closing as Invalid, if the file is still not displayed correctly on your machine
after performing the above steps feel free to reopen this issue.

Original comment by CodyPrec...@gmail.com on 29 Dec 2009 at 2:08

GoogleCodeExporter commented 9 years ago
Dear CodyPrecord:

I am sorry that the file could't be displayed correctly. Please see the 
attached excel 
file I have made.

Original comment by wis...@gmail.com on 29 Dec 2009 at 2:28

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Your screenshot clearly shows that you have the encoding set incorrectly. See 
the
'binary' text in the status bar. Go to File=>Reload with Encoding, when the 
dialog
pops up select euc_jp from the dropdown list then click Ok.

See my attached screenshot.

If this is what you did and are still having problems please let me know,

1) What version of Editra your using

2) What version of Windows your on

3) How did you install (Source/Binary (exe))

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 29 Dec 2009 at 3:03

Attachments:

GoogleCodeExporter commented 9 years ago
Dear CodyPrecord:

thank you for your patient.

1) What version of Editra your using
  version 0.5.32

2) What version of Windows your on
  version xp pack2

3) How did you install (Source/Binary (exe))
  I just install the exe file.

please see the attach file.

thanks u very much.

Original comment by wis...@gmail.com on 29 Dec 2009 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

That is the same setup as my machine and as you can see in my screenshot the 
file is
displayed correctly.

Did you try changing the encoding settings like I said? 
(ファイルー>エンコーディング
を指定して再読込み、euc_jp を選んでOKを選択してください
。)

When I download your attached txt file and open it, at first it does not display
correctly because my default encoding is cp1252, but when I switch to the 
correct
encoding (euc_jp) then it shows fine.

Are there any errors ([err]) in the Log window when you try to open the file?
(View=>Shelf=>Editra Log).

Original comment by CodyPrec...@gmail.com on 29 Dec 2009 at 4:00

GoogleCodeExporter commented 9 years ago
Dear CodyPrecord:

I like editra, and I want to use it, so I won't give up until this problem be 
solved.

I made the evidence again, and please. 

thank you.

Original comment by wis...@gmail.com on 30 Dec 2009 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Its very strange why it doesnt work on your machine. The sequence of your 
screenshots
are kind of strange though, #2 could not have occurred before #3 as there is no 
way
to open the log windows when the file dialog is open.

The log messages seem to be missing some text to that I don't know how to 
explain it
looks as if it is just giving up silently on your machine before it is done.

For example #4 is missing log output: Should look more like this
[10:52:26][ed_txt][info] DetectEncoding, skipping do to user set encoding: 
euc_jp
[10:52:26][ed_txt][info] Decoded C:\Documents and
Settings\cjprecord\Desktop\aaro320b.txt with euc_jp

I don't understand why you have Lexer Change notifications in there.

Also your second screenshot should not have happened it should have opened it 
and
just had the incorrectly rendered text in the buffer.

Here are some other tests to try, (if possible it would be better to install
python/wxPython and checkout Editra svn to make testing easier).

1) Start Editra
2) Edit->Preferences
     * General->Files - Change the "Prefered Encoding" to euc_jp
3) Close the preference dialog
4) Open your text file

If that doesn't cause anything different to happen then please try to check out 
the
editra sources and install python/wxpython. I added some more logging messages 
to
help with debugging.

Editra can be run by simply calling

python Editra -S

from the checked out source directory. More instructions available on the 
homepage
(editra.org).

Cody

Original comment by CodyPrec...@gmail.com on 30 Dec 2009 at 5:01

GoogleCodeExporter commented 9 years ago
Dear CodyPrecord:

Here is a good news, that it worked!
1) Start Editra
2) Edit->Preferences
     * General->Files - Change the "Prefered Encoding" to euc_jp
3) Close the preference dialog
4) Open your text file

I think there is something wrong in my machine or the program. In fact, other 
machine 
is the same result. All the windows is Japanese.

thank you very very much.

(window split is excepting)

Original comment by wis...@gmail.com on 31 Dec 2009 at 1:19

GoogleCodeExporter commented 9 years ago
Have made a number of bug fixes to encoding handling for the next release. I 
think
that this issue should be resolved

So closing this as fixed. If the issue still exists after the next release (> 
0.5.32)
feel free to reopen.

Original comment by CodyPrec...@gmail.com on 2 Feb 2010 at 3:01