Jump to content

[SOLVED] Umlaut.. help


rootx
 Share

Recommended Posts

I need help with unicode char ü I get some text from online json but if try to read 4 example Zürich I heave  Zürich.

How can I convert with autoit unicode to a clear character readable? thx

Edited by rootx
Link to comment
Share on other sites

Hi. Could this be helpful?

Local $sUmlaut = "ü"
Local $sPasteCode = _Unicode($sUmlaut)

$sPasteCode = '" & Chr(' & $sPasteCode & ') & "'
ConsoleWrite("Umlaut: " & $sPasteCode & @CRLF)

Func _Unicode($sString)
    Local $Binary = StringToBinary($sString)
    ConsoleWrite("Unicode: " & $Binary & @CRLF)
    Return $Binary
EndFunc

This snippet (I changed it a little bit - so I hope it is correctly working) I use to have Umlaute correctly in MsgBox.

Conrad

SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win_10   Build = 19044   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...