Page 2 of 2

Re: HMGSCRIPT R39

Posted: Sat Dec 20, 2014 9:07 pm
by Czarny_Pijar
Polish national alphabet contains 18 non-English letters, these are: ąćęłńóśźż ĄĆĘŁŃÓŚŻŹ.

In the edit window I had been appending two of them, namely ÓŚ , then I accepted this change (Ok button).

The result can be seen on the right side of the image.

Re: HMGSCRIPT R39

Posted: Sat Dec 20, 2014 11:39 pm
by Roberto Lopez
Czarny_Pijar wrote:Polish national alphabet contains 18 non-English letters, these are: ąćęłńóśźż ĄĆĘŁŃÓŚŻŹ.

In the edit window I had been appending two of them, namely ÓŚ , then I accepted this change (Ok button).

The result can be seen on the right side of the image.
I'm pretty sure that the problem is not related with client JavaScript code, but with Harbour server code.

Maybe someone worked with unicode in Harbour could help with that.

Re: HMGSCRIPT R39

Posted: Sat Dec 20, 2014 11:44 pm
by srvet_claudio
Roberto Lopez wrote:
Czarny_Pijar wrote:For short: if I only can operate with unicode, then I can boldly call this release 1.00
XP+Chrome
How exactly you done this?

(I have almost not experience with unicode)

TIA.
My knowledge is zero about HMGScript, but maybe if you:

1) SET (_SET_CODEPAGE, "UTF8") // at first in HB function Main()

2) In PRG files you change all string functions that support only ANSI character set for equivalent functions that support ANSI and UNICODE character set (see C:/hmg.3.3.1/DOC/data/HMG_UNICODE_DOC/HB_Unicode_Strings.htm and C:/hmg.3.3.1/DOC/data/HMG_UNICODE_DOC/HB_Ansi_Strings.htm)

3) html file encode in UTF-8 ( <meta charset="UTF-8"> )

Re: HMGSCRIPT R39

Posted: Sun Dec 21, 2014 2:06 am
by Roberto Lopez
srvet_claudio wrote: My knowledge is zero about HMGScript, but maybe if you:

1) SET (_SET_CODEPAGE, "UTF8") // at first in HB function Main()

2) In PRG files you change all string functions that support only ANSI character set for equivalent functions that support ANSI and UNICODE character set (see C:/hmg.3.3.1/DOC/data/HMG_UNICODE_DOC/HB_Unicode_Strings.htm and C:/hmg.3.3.1/DOC/data/HMG_UNICODE_DOC/HB_Ansi_Strings.htm)

3) html file encode in UTF-8 ( <meta charset="UTF-8"> )
Thanks for the info.