invalid UTF-8 sequence compiler error

Lars Ivar Igesund larsivar at igesund.net
Sat Apr 7 11:19:57 PDT 2007


Cesar Rabak wrote:

> Thomas Kuehne escreveu:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Cesar Rabak schrieb am 2007-04-06:
>>> Cesar Rabak escreveu:
>>>> Carlos Santander escreveu:
>>>> [snipped]
>>>>> This is a D feature, not a GDC problem. Save your file as UTF-8, -16,
>>>>> or -32, and it'll work.
>>>>>
>>>> It will take time to convince my folks it is a feature but I'll try :-)
>>>>
>>> In a chat with the stake holders I learned the source I can use the code
>>> I want, but for the message strings I'll need to abide the sysadmin's
>>> decisions which may be not UTF-.
>>>
>>> How it is this solved with the D compiler?
>> 
>> If you simply store and print message you could use "ubyte[]". For
>> everyting else like searching, concating etc. more information about the
>> encoding(s) is required.
>> 
> Thanks Thomas.
> 
> For going further in the tests for the consideration of D for
> programming in new projects storing and printing messages is all I need
> by now.
> 
> If too much text data starts to appear to be processed I might have to
> consider an input method that makes the appropriate conversion to an
> internal representation (and an output one, too).
> 
> --
> Cesar Rabak

If you should find yourself in need of such conversion routines, consider
using the ICU (IBM package for such things) bindings in the Mango library,
see http://www.dsource.org/projects/mango

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango


More information about the D.gnu mailing list