Página 1 de 1
How to Enable UTF8 in Xailer Form ?
Publicado: Lun Jul 29, 2013 10:07 am
por Milan Mehta
I wish to use UTF8 compliant Font using Google Input Handler on the Xailer
form.
How can I ?
It works fine in MS Excel, Word etc.
Kindly guide.
Milan.
How to Enable UTF8 in Xailer Form ?
Publicado: Lun Jul 29, 2013 1:26 pm
por ignacio
Milan Mehta escribió el lun, 29 julio 2013 10:07I wish to use UTF8 compliant Font using Google Input Handler on the Xailer
form.
How can I ?
It works fine in MS Excel, Word etc.
Kindly guide.
Milan.
I'm afraid is not possible, sorry.
Regards,
How to Enable UTF8 in Xailer Form ?
Publicado: Lun Jul 29, 2013 3:36 pm
por Milan Mehta
Any workaround ?
Many people should be using Unicodes (to use other than English language).
TIA
Milan.
"Ignacio Ortiz de Zúñiga" <
nonametoavoidspam@xailer.com> wrote in
message news:51f65172$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Milan Mehta escribió el lun, 29 julio 2013 10:07
>> I wish to use UTF8 compliant Font using Google Input
>> Handler on the Xailer form.
>> How can I ?
>>
>> It works fine in MS Excel, Word etc.
>>
>> Kindly guide.
>>
>> Milan.
>
>
> I'm afraid is not possible, sorry.
>
> Regards,
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
>
http://www.xailer.com
>
http://www.xailer.info
How to Enable UTF8 in Xailer Form ?
Publicado: Lun Jul 29, 2013 6:55 pm
por jfgimenez
Milan,
> Any workaround ?
> Many people should be using Unicodes (to use other than English language).
it's used to set the correct codepage in each case. The problem to use
unicode in a program is that everything in that program should be
unicode, or you have to make conversions everywhere. That includes DBF
or any other DB manager, calling to windows API, and so on.
In the case of Xailer, all controls are created in ANSI mode, using the
selected codepage. So, pure unicode chars cannot be used, that is, every
char must fit 8 bits, not 16 bits, limiting the amount of simultaneous
chars to 256. However, as I've said before, you may set the codepage to
the desired one by calling that Harbour's function hb_cdpselect(). At
the beginning of the program, Xailer calls HB_CdpSelect( hb_cdpOS() ),
to select the OS default CP, but you may change to any other one.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
How to Enable UTF8 in Xailer Form ?
Publicado: Lun Jul 29, 2013 6:56 pm
por ignacio
Milan Mehta escribió el lun, 29 julio 2013 15:36Any workaround ?
Many people should be using Unicodes (to use other than English language).
TIA
Milan.
Hi,
Xailer was constructed with only ANSI charset support, which was the only available in [x]harbour from its beginning. Now, I believe Harbour has start supporting Unicode, but unfortunately its a lot of work to do on Xailer to support it.
BTW, we have some function for Unicode conversion:
- AnsiToWide()
- WideToAnsi()
- Utf8ToAnsi()
- AnsiToUtf8()
Regards,
How to Enable UTF8 in Xailer Form ?
Publicado: Lun Jul 29, 2013 6:56 pm
por jfgimenez
Milan,
BTW, I forgot to say that windows uses UTF-16, not UTF-8, so, if you
need to store UTF-8 data, you have to make the conversion when needed.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info