Ticket #304 (closed defect: fixed)
padre chokes plain text files with non-ascii characters
| Reported by: | jquelin | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | editor | Version: | 0.34 |
| Keywords: | Cc: | cm@… |
Description
- open padre, create an empty file.
- type in non-ascii chars (cf attached file)
- save
- padre issues warnings:
"\x{00e7}" does not map to ascii at /home/jquelin/prog/padre/Padre/lib/Padre/Wx/Main.pm line 1678.
"\x{00e9}" does not map to ascii at /home/jquelin/prog/padre/Padre/lib/Padre/Wx/Main.pm line 1678.
"\x{00e9}" does not map to ascii at /home/jquelin/prog/padre/Padre/lib/Padre/Wx/Main.pm line 1678.
- close padre
- reopen padre with the new file just created
- see the content of the file now reading:
fan\x{00e7}ais \x{00e9}cossas et \x{00e9}conmie
instead of:
fançais écossas et éconmie
that's not good...
Attachments
Change History
comment:1 Changed 4 years ago by jquelin
note that the problem seems to be in the saving, since opening the created file with vim shows the \x{...} codes.
comment:2 Changed 4 years ago by therek
- Cc cm@… added
It seems to work fine both on my FreeBSD and Linux boxes, although, current line background color for the UTF-8 test file is changed to default (I use different color for this).
