NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on July 24, 2014, 11:12:33 AM
-
Hi Bruce,
After update to NT 8.21 i´m getting problem with portuguese character.
Regards,
Walter - SOFTVALE
-
Hi Walter,
thanks for the feedback - I've changed the urf methods to use the StringTheory methods (which are better). The only "catch" is matching up the correct windows code page for the various languages. I defaulted the "western europe" ones to ASCII - but there is an alternate code page that can be used.
So here's a test you can run - please give it a try and then let me know if it's better;
open netweb.clw
search for the method;
NetWebServerWorker.UtfToAscii
notice the CASE statement at the start of the procedure. You'll see that "store as Portuguese" is with a group of other languages. move it from the ASCII block to the "Danish" block. ie change
of net:StoreAsSpanish
orof net:StoreAsPortuguese
orof net:StoreAsFrench
orof net:StoreAsWesternEurope
orof net:StoreAsAscii
ans.ToAnsi(st:EncodeUtf8,st:CP_US_ASCII)
of net:StoreAsDanish
ans.ToAnsi(st:EncodeUtf8,st:CP_WINDOWS_1252)
to
of net:StoreAsSpanish
orof net:StoreAsFrench
orof net:StoreAsWesternEurope
orof net:StoreAsAscii
ans.ToAnsi(st:EncodeUtf8,st:CP_US_ASCII)
of net:StoreAsDanish
orof net:StoreAsPortuguese
ans.ToAnsi(st:EncodeUtf8,st:CP_WINDOWS_1252)
Then search for
NetWebServerWorker.AsciiToUtf
and do the same there.
Let me know what happens.
cheers
Bruce
-
Hi Bruce,
Doesn´t work.
Regards,
Walter - SOFTVALE
[attachment deleted by admin]
-
>> After update to NT 8.21 i´m getting problem with portuguese character.
I need an example of the problem, and the description of what I'm looking at. Remember I don't speak Portuguese, so please explain the issue carefully.
cheers
Bruce
-
Hi Bruce,
Maybe the image shows better. Into ballon NT error, below in red what must be.
Cheers,
Walter - SOFTVALE
[attachment deleted by admin]
-
excellent. Now all I need is the sample app.
-
Hi Bruce
I put the sequence ãíôç into some text labels and changed data set and stored data to 'utf-8' nad portuguese.
Cheers,
Walter - SOFTVALE
[attachment deleted by admin]
-
thanks - fixed in 8.24
cheers
Bruce
-
Thanks
Walter - SOFTVALE
-
Hi Bruce,
NT 8.25
Problem persist in xhtml from PageHeaderTag.
Cheers,
Walter - SOFTVALE
-
example please