NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Poul Jensen on May 19, 2015, 09:44:06 AM

Title: Non ASCII chars not showning correctly in header
Post by: Poul Jensen on May 19, 2015, 09:44:06 AM
In PageHeaderTag I have following to show information about logged-in customer:

packet.SetValue(' <strong>Sælger: ' & clip(p_web.GSV('SaelgerNavn')) & '</strong>'& p_web.CRLF )
do SendPacket

But the non ASCII characters does not come out right.

I am using UTF8 / Scandnavian character and the information read and saved from database is correct.

Any clues ?

Cheers
/Poul

Title: Re: Non ASCII chars not showning correctly in header
Post by: Bruce on May 20, 2015, 01:36:44 AM
try this;

packet.SetValue(' <strong>Sælger: ' & p_web.Translate(p_web.GSV('SaelgerNavn')) & '</strong>'& p_web.CRLF )

Cheers
Bruce
Title: Re: Non ASCII chars not showning correctly in header
Post by: Poul Jensen on May 20, 2015, 03:50:08 AM
Thanks Bruce.

Cheers
/Poul