; converts UTF8 to ASCII-String. ; Ascii und unicode-tested ; copying from 'LinuxPB API-LibViewer'-Editor doesn't work cause it's converted in the editor. You have to load the code. Procedure.s UTF8ToAscii(UTF8.s); converts UTF8 to Ascii. Output as String Protected *mem= AllocateMemory(StringByteLength(UTF8, #PB_UTF8) + 2) Protected *len= PokeS(*mem, UTF8, -1, #PB_Ascii) Protected.s SAscii= PeekS(*mem, -1, #PB_UTF8) FreeMemory(*mem) ProcedureReturn SAscii EndProcedure Sin.s = "Jäger, König, Müller, Groß"; String in UTF8 S1.s = UTF8ToAscii(Sin) Debug S1 ; IDE Options = PureBasic 5.40 LTS (Linux - x86) ; CursorPosition = 11 ; Folding = - ; EnableUnicode ; EnableXP