8 Bit Character Replacement

Find, replace, find in files, replace in files, regular expressions

8 Bit Character Replacement

Postby ldehmer » Wed Jul 12, 2006 6:02 pm

Hiya All,

I have been looking around on the site here and it seems that you can do some type of conversion for 8 Bit Characters. What I have is an XML file and some of the charters have accents and such, the system we are importing the XML file in to does not handle them all that well (that is being worked on) but in the mean time I would like to easily convert the characters.

Ex: ROGÉRIO would become ROGERIO

Any clue to the best way? I have read some of the post on BOM and 8Bit/16Bit but I am fuzzy on this still.

Thanks,
User avatar
ldehmer
Newbie
 
Posts: 2
Joined: Tue Jul 11, 2006 11:00 pm

Re: 8 Bit Character Replacement

Postby Mofi » Thu Jul 13, 2006 5:11 am

Best would be to write a macro which does all the replaces. The macro needs the property Continue if a Find with Replace not found.

InsertMode
ColumnModeOff
HexOff
Top
Find MatchCase "É"
Replace All "E"
Find MatchCase "é"
Replace All "e"
Find MatchCase "ê"
Replace All "e"
Find MatchCase "è"
Replace All "e"
and so on

Use View - ASCII Table to get an overview about all characters with accents.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: 8 Bit Character Replacement

Postby ldehmer » Thu Jul 20, 2006 1:32 pm

Thanks --- and sorry for the slow reply!
User avatar
ldehmer
Newbie
 
Posts: 2
Joined: Tue Jul 11, 2006 11:00 pm


Return to Find/Replace/Regular Expressions