NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on July 24, 2014, 11:12:33 AM

Title: NT 8.21 problem uft-8/Portuguese
Post 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
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: Bruce on July 24, 2014, 10:08:30 PM
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




Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: walter.dasilva on July 25, 2014, 04:42:17 AM
Hi Bruce,

Doesn´t work.

Regards,
Walter - SOFTVALE


[attachment deleted by admin]
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: Bruce on July 31, 2014, 10:45:47 PM
>> 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
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: walter.dasilva on August 01, 2014, 04:43:23 AM
Hi Bruce,

Maybe the image shows better. Into ballon NT error, below in red what must be.

Cheers,
Walter - SOFTVALE


[attachment deleted by admin]
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: Bruce on August 01, 2014, 07:23:39 AM
excellent. Now all I need is the sample app.
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: walter.dasilva on August 04, 2014, 05:46:31 AM
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]
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: Bruce on August 06, 2014, 01:46:41 AM
thanks - fixed in 8.24

cheers
Bruce
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: walter.dasilva on August 06, 2014, 10:11:26 AM
Thanks
Walter - SOFTVALE
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: walter.dasilva on August 22, 2014, 10:19:03 AM
Hi Bruce,

NT 8.25

Problem persist in xhtml from PageHeaderTag.

Cheers,

Walter - SOFTVALE
Title: Re: NT 8.21 problem uft-8/Portuguese
Post by: Bruce on September 10, 2014, 01:39:04 AM
example please