NetTalk Central

Author Topic: NT 8.21 problem uft-8/Portuguese  (Read 3211 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
NT 8.21 problem uft-8/Portuguese
« 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
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NT 8.21 problem uft-8/Portuguese
« Reply #1 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





walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: NT 8.21 problem uft-8/Portuguese
« Reply #2 on: July 25, 2014, 04:42:17 AM »
Hi Bruce,

Doesn´t work.

Regards,
Walter - SOFTVALE


[attachment deleted by admin]
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NT 8.21 problem uft-8/Portuguese
« Reply #3 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

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: NT 8.21 problem uft-8/Portuguese
« Reply #4 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]
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NT 8.21 problem uft-8/Portuguese
« Reply #5 on: August 01, 2014, 07:23:39 AM »
excellent. Now all I need is the sample app.

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: NT 8.21 problem uft-8/Portuguese
« Reply #6 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]
« Last Edit: August 04, 2014, 10:15:52 AM by walter.dasilva »
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NT 8.21 problem uft-8/Portuguese
« Reply #7 on: August 06, 2014, 01:46:41 AM »
thanks - fixed in 8.24

cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: NT 8.21 problem uft-8/Portuguese
« Reply #8 on: August 06, 2014, 10:11:26 AM »
Thanks
Walter - SOFTVALE
Walter - SOFTVALE

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: NT 8.21 problem uft-8/Portuguese
« Reply #9 on: August 22, 2014, 10:19:03 AM »
Hi Bruce,

NT 8.25

Problem persist in xhtml from PageHeaderTag.

Cheers,

Walter - SOFTVALE
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NT 8.21 problem uft-8/Portuguese
« Reply #10 on: September 10, 2014, 01:39:04 AM »
example please