Bad ISO code page handling

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Bad ISO code page handling

Postby md23128 » Sat Nov 25, 2006 6:13 pm

Hi,

can anyone explain to me, what is wrong with my UE setting, so it scews up ISO encoding?

Description:
1. open a ISO-8859-2 encoded file from tree view (option "auto code page detection", "prompt to accept...", "prompt to change..." in Advanced->Configuration->Code Page Detection are checked)
2. get the warning "In order to view...), click ok
3. you see the content of the file OK (i.e. correctly decoded)
4. change something and click Save
5. the file is still ISO encoded, so it is RIGHT
6. in UE add to the file some ISO-8859-2 sensitive characters
7. open the same file in some other editor (EditPlus) and you will see, that the characters added with UE are encoded WRONG, although UE shows in View->Set Code Page ISO encoding!!! [please note: previous characters are encoded OK, so you have two encodings (!) in one file]

I consider buying UE and switching to it from EditPlus, but if there are problems with encoding, I will not be able to do this :/

rgds,m.
User avatar
md23128
Newbie
 
Posts: 2
Joined: Sat Nov 25, 2006 12:00 am

Re: Bad ISO code page handling

Postby Mofi » Sun Nov 26, 2006 12:42 pm

I never edited code page sensitive files, but the warning "In order to view... " shows you that the font or script setting you use is not good for the code page of the file because it does not contain the code page sensitive characters with the hex values needed for this code page. I think, this is the reason why the inserted characters are then displayed wrong in the other application. Use a different font, for example the font used in EditPlus or set the Scipt correctly as suggested by the warning.

You can check this if you insert into the file a special character with EditPlus and then insert right the existing special character the same character also with UltraEdit (with wrong font settings) and then switch to hex edit mode and look which hex values the 2 special characters have.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4056
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Bad ISO code page handling

Postby md23128 » Mon Nov 27, 2006 10:19 am

Hi,

thanks for your help.

I checked font settings in both editors, and I have the same fonts set, i.e. Courier New, Normal, Language East Europe, so I guess the reason is somewhere else :(

So, how to set default code page in UE? Setting "Advanced" -> "Set code page/Local" to ISO-8859-2 works only for a while and gets back to "C Default locale/code page - previously used"

TIA, m.
User avatar
md23128
Newbie
 
Posts: 2
Joined: Sat Nov 25, 2006 12:00 am

Re: Bad ISO code page handling

Postby Mofi » Mon Nov 27, 2006 3:31 pm

The code page and locales setting should be stored permanently. Please note that you must specify both to something which matches. It is not possible to set the code page to East Europe Languages and the locales to French for example. This is not a valid combination.

Have you checked the hex values in hex edit mode as suggested?

Maybe you have by mistake enabled the OEM character set as often seen here when a user has had a problem with special language dependent characters. Use forum search with the search words oem character set.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4056
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to UltraEdit General Discussion