Re: UTF-8 encoding vs UTF-32
- Posted by LarryMiller Aug 10, 2014
- 1539 views
I have read that Euphoria's native encoding is UTF-32. I am not very familiar with the different encodings, so I have to ask: will a text encoded and saved with Euphoria's UTF-32 be readable in a UTF-8 environment? Also, is Euphoria able to read, process and save texts encoded with UTF-8?
Personally I don't have any particular requirements, apart for the support of non-English languages. I am only concerned that using different encodings may cause compatibility problems.
At the present time Euphoria doesn't natively support Unicode in any form so it doesn't have a native encoding. Euphoria applications can use Unicode in applications but you must do most of the work yourself. UTF-32 would be the easiest encoding to use internally. UTF-8 and UTF-32 are totally different and incompatible encodings. Euphoria can read and write any arbitrary data, including UTF-8, but doesn't understand Unicode at all.
A future version of Euphoria may provide Unicode support.