IxiRancid Posted April 22, 2005 Posted April 22, 2005 I know about regex.Replace, but is there any way to convert "weird" characters (alfabetic) to plain ISO (english) characters. example: VIDOVI� = VIDOVIC �AVAR = I don't have a clue what this is :-\ Perhaps I should get the code tables used for those characters and convert them? Thanks! Quote
mskeel Posted April 25, 2005 Posted April 25, 2005 I'm kind of confused about what you are trying to accomplish but I would think the best thing to do would be to create some kind of a lookup table as you kind of thought of doing in the first place. The best, I think, would be to look up the unicode/ascii value of each character in a string and substitute it with the desired value. In the example above you would cycle through VIDOVI� character by character and come up with V, I, D, O, V, I, C, "" (at least I assume the � turned into a null string). Quote
IxiRancid Posted April 26, 2005 Author Posted April 26, 2005 Well, I solved it with string.replace... I made a replace for all my weird charactes, and that's it. I just run every string throught these string.replace statements, and that's it. I actually thought it would take longer, but there is almost no difference. Thanks anyway! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.