Replies: 5 comments 4 replies
-
Could you provide some example? I am not sure, if I understand your question. |
Beta Was this translation helpful? Give feedback.
-
If you need support for Rebol2, then I cannot help you. Rebol2 is out of my control. It was not Unicode aware. Cannot you use Rebol3 instead? |
Beta Was this translation helpful? Give feedback.
-
For text transcoding in Rebol3 there is >> bin: to-binary "ábč"
== #{C3A162C48D} ;= text as utf8
>> iconv/to bin 'utf8 'cp1250
== #{E162E8}
>> iconv/to bin 'utf8 'cp1252
== #{E16263} ;= note that the č is converted to c as there is no č in this codepage! In case you have a source in some known codepage and want to load it in Rebol3, you can do it like:
where instead of Actually it can be just:
As the utf8 target is the default codepage. Supported codepages can be found in the source code. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately I don't have any script, which could guess, which encoding is used in an unknown text. |
Beta Was this translation helpful? Give feedback.
-
There are also >> latin1? "abí" ;; Returns TRUE if value or string is in Latin-1 character range (below 256).
== true
>> ascii? "abí" ;; Returns TRUE if value or string is in ASCII character range (below 128).
== false But as these requires string, the use may be limited, because conversion from binary to string expects UTF8 by default (if not used |
Beta Was this translation helpful? Give feedback.
-
Hi!
I have scripts in R2, but they not accept UTF8.
I need UTF8 for some languages, so my question is "is it possible to show and analyse text in UTF8?"
Thanks in advance,
Alain
Beta Was this translation helpful? Give feedback.
All reactions