March 24, 2019, 08:15:36 AM

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

Offline fielder

  • Jr. Member
  • **
  • Posts: 62
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: 1685
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: 62
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!