May 19, 2019, 10:40:43 PM

Author Topic: UTF-8 to Ansi/Ascii string?  (Read 128 times)

Offline fielder

  • Jr. Member
  • **
  • Posts: 68
UTF-8 to Ansi/Ascii string?
« on: March 15, 2019, 09:58:14 AM »
has anyone a code to convert an UTF-8 string (from an readstream command) to ansi?

Offline Derron

  • Hero Member
  • *****
  • Posts: 2081
Re: UTF-8 to Ansi/Ascii string?
« Reply #1 on: March 15, 2019, 10:04:20 AM »
utf to iso:
https://github.com/GWRon/Dig/blob/master/base.util.string.bmx

or inbuilt utf to iso:
String.FromUTF8String(b:Byte Ptr)

bye
Ron

Offline fielder

  • Jr. Member
  • **
  • Posts: 68
Re: UTF-8 to Ansi/Ascii string?
« Reply #2 on: March 15, 2019, 12:12:26 PM »
utf to iso:
https://github.com/GWRon/Dig/blob/master/base.util.string.bmx

or inbuilt utf to iso:
String.FromUTF8String(b:Byte Ptr)

bye
Ron

:) oh thank you Ron!