HMGSCRIPT R39

Moderator: Rathinagiri

User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

Re: HMGSCRIPT R39

Post by Czarny_Pijar » Sat Dec 20, 2014 9:07 pm

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.

User avatar
Roberto Lopez
HMG Founder
Posts: 3900
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 136 times

Post by Roberto Lopez » Sat Dec 20, 2014 11:39 pm

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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
srvet_claudio
Posts: 1953
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 31 times
Been thanked: 120 times
Contact:

Post by srvet_claudio » Sat Dec 20, 2014 11:44 pm

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"> )
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
Roberto Lopez
HMG Founder
Posts: 3900
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 136 times

Post by Roberto Lopez » Sun Dec 21, 2014 2:06 am

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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

Post Reply