Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
utf-8 to unicode actions
#1
The following string obviously contains some utf-8 characters :

Quote:search?q=%CE%BF%CE%BE%CF%85%CE%BC%CE%B5%CF%84%CF%81%CE%AF%CE%B1&ie=utf-8&oe=utf-8

I would appreciate any advice on the way to convert this string to my native language unicode characters.

Furthermore, I would appreciate any advice on the way to display a utf character in the form above. More specifically how do I have to modify the following code to display this character as %BC%CE :

Macro temp11
Code:
Copy      Help
str utf8
utf8="μ"

int L = utf8&0xFF
int H = utf8>>8&0xFF
out "0x%X - 0x%X" H L


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)