NetTalk Central

Author Topic: Non ASCII chars not showning correctly in header  (Read 3209 times)

Poul Jensen

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • Email
Non ASCII chars not showning correctly in header
« 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


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Non ASCII chars not showning correctly in header
« Reply #1 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

Poul Jensen

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • Email
Re: Non ASCII chars not showning correctly in header
« Reply #2 on: May 20, 2015, 03:50:08 AM »
Thanks Bruce.

Cheers
/Poul