Help converting Hex UTF-8 bytes to character
Monte Goulding
monte at appisle.net
Thu May 31 18:20:37 EDT 2018
Hi Trevor
I’m pretty sure that the following will do what you want here:
textDecode(format(<file content>),”utf-8”)
Cheers
Monte
> On 1 Jun 2018, at 6:13 am, Trevor DeVore via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi,
>
> I have a text file that contains Hex UTF-8 bytes encode in the following
> manner:
>
> ```
> \xC3\xB3
> ```
>
> This particular sequence represents the following character:
>
> ```
> ó
> ```
>
> I need to read this file in, converting these hex bytes to the proper
> character. For example, the following string:
>
> ```
> versi\xC3\xB3n HTML5
> ```
>
> should be read in as:
>
> ```
> versión HTML 5
> ```
>
> Does anybody know how to use the C3 B3 hex values to generate the proper
> character?
>
> Thanks,
>
> --
> Trevor DeVore
> ScreenSteps
> www.screensteps.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list