NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on July 07, 2022, 12:37:46 PM

Title: NT 12.42 Problems
Post by: osquiabro on July 07, 2022, 12:37:46 PM
after update to 12.42 the NetWebForm not recognize the Spanish label characters, Contrase?a
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 07, 2022, 12:59:10 PM
I returned to 12.41 and worked.
Title: Re: NT 12.42 Problems
Post by: Bruce on July 07, 2022, 08:18:12 PM
Tweak an example app to show the effect, and I can investigate here.

Cheers
Bruce
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 08, 2022, 03:17:00 AM
see attachment example
Title: Re: NT 12.42 Problems
Post by: Bruce on July 08, 2022, 03:51:40 AM
I think maybe you zipped the app while it was still open in the IDE (and unsaved).
Cause I don't see any changes that you have made in there...

also, do you need to include a TPS file?

cheers
Bruce
Title: Re: NT 12.42 Problems
Post by: Alberto on July 08, 2022, 04:40:50 AM
Spanish works ok for me (Im on utf-8) but what I think is uncomfortable is the change of the Header and Footer selectors to "Advance"
In an existing app it appears blanked
I think it would be a good idea to move it to Defaults
Also move the Max Threads to Perfomance
And change the Advance tab name to Translations or Variety or... :-)
Regards
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 08, 2022, 04:49:59 AM
Alberto work for me in 12.41 and below, see the attachment example with 12.42
Title: Re: NT 12.42 Problems
Post by: Bruce on July 08, 2022, 07:45:11 AM
please rezip, and repost your example Osa.
Also including instructions on where I must go to see the effect you  are seeing in 12.42

Cheers
Bruce
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 08, 2022, 09:07:20 AM
go to LoginForm and see the value of label of password is in spanish, but when run is not recognize spanish content in a prompt
Title: Re: NT 12.42 Problems
Post by: Bruce on July 10, 2022, 09:28:34 PM
Morning Osa,

So in this example you have charset set to 'utf-8' (which is good.)
You also have "Store Data As" set to utf-8, which is fine - storing data as utf-8 is mostly ok, as long as you understand the limitations of that.

However in your template prompt you have typed in;
'Contrase?a'

But this is ANSI encoded, not utf-8 encoded. So, since your store-as is set to utf-8, and the charset is utf-8, the Translate method does not convert the text at all. But since the text is actually ANSI, not utf-8, it does not display well.

Encodings and mappings can get complicated, but I'm assuming you've watched my webinars on the subject. The short version though is that if you choose utf-8 you need to stick to it. Same as for ANSI.

cheers
Bruce
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 11, 2022, 03:17:16 AM
but that change in this version? take a look of my page compile in 12.41 https://www.fecipur.org/LoginForm everything work ok, my Store Data as in this app is Spanish and don't have any hand code for this purpose, look example compile with 12.42 http://fecipur.org:8080/LoginForm

same app without no change only compile in different version, all run in same server
Title: Re: NT 12.42 Problems
Post by: Bruce on July 11, 2022, 09:13:31 PM

>> my Store Data as in this app is Spanish

In the example you sent it was utf-8. Perhaps you want to update the example to match your setup? Post that and I'll look again.

cheers
Bruce
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 12, 2022, 01:33:25 AM
attached example
Title: Re: NT 12.42 Problems
Post by: osquiabro on July 13, 2022, 04:20:00 AM
i think that the problems is a Translate i put this code in both version for see the variant,  take a look at image

loc:prompt = p_web.Translate('Entre su Contrase?a:')
message(loc:prompt)

But I don't know how to correct this
Title: Re: NT 12.42 Problems
Post by: Bruce on July 13, 2022, 06:53:20 AM
Thanks for the example, I was able to duplicate in there. I'm guessing a 12.43 build will happen before the end of the week.
Title: Re: NT 12.42 Problems
Post by: Bruce on July 14, 2022, 02:08:42 AM
12.43 is up