Re: [fpc-pascal] Set of encoding conversion routines

2009-08-12 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > On Tue, Aug 11, 2009 at 12:43 PM, Marco van de Voort wrote: > > The lowest level is unit charset in the rtl, Unix style iconv is supported > > by package iconvenc. > > The charset unit doesn't look complete or usable. Afaik it is. The u

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-12 Thread Zaher Dirkey
I have my own on ported from IConv in http://www.sourceforge.net/projects/minilib check minilib\Unicodes\source I used in Wince project because WinCE not support my language locale -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-12 Thread Felipe Monteiro de Carvalho
On Tue, Aug 11, 2009 at 12:43 PM, Marco van de Voort wrote: > The lowest level is unit charset in the rtl, Unix style iconv is supported > by package iconvenc. The charset unit doesn't look complete or usable. > No. Non *nix OSes have their own api. There is an abstraction, > lconvencoding, but t

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-11 Thread Marco van de Voort
In our previous episode, Zaher Dirkey said: > There is unit in Lazarus > lcl\LConvEncoding.pas > is that you mean? yes. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-11 Thread theo
I just needed UTF-8 to Latin 1 ISO but I can't find a cross-platform solution. Remembering that UTF8ToAnsi doesn't solve the problem because it converts to the system encoding and not Latin 1 ISO. A simpe option might be: wides:=UTF8Decode(utf8s); widestringmanager.Wide2AnsiMoveProc:=...@

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-11 Thread Zaher Dirkey
There is unit in Lazarus lcl\LConvEncoding.pas is that you mean? -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-11 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > > Does anyone know if there is a set of encoding conversion routines? If > there isn't, how should we add one? New directory in fpc/packages? Cross platform, with a library? The lowest level is unit charset in the rtl, Unix style iconv