NetTalk Central

Author Topic: Problem with UK pound sign £ in PDF reports  (Read 5071 times)

ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
Problem with UK pound sign £ in PDF reports
« on: September 10, 2012, 07:54:28 AM »
If a user enters a UK pound sign £ into an entry field or text box, it displays fine on forms and browses, but when those fields are printed as part of a PDF report (using PDF Tools), the pound signs show as  Â£. I am using Arial in report and form.

Any thoughts?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Problem with UK pound sign £ in PDF reports
« Reply #1 on: September 10, 2012, 09:20:34 PM »
I'm guessing it's a utf-8 / Ansi issue. You might try experimenting with the "charset" and "save-as" settings on the WebServer procedure.

Also use TopScan to look inside the file - what character do you see there?

cheers
Bruce

ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
Re: Problem with UK pound sign £ in PDF reports
« Reply #2 on: September 10, 2012, 10:21:02 PM »
Topscan shows the character wrongly as £

In the Webserver procedure, extension > Settings > Advanced, I have:
Charset: 'utf-8'
Store Data as: utf-8

If I change these to:
Charset: 'ansi'
Store Data as: Central Europe

... the characters show correctly in a browser and in Topscan and the PDF report.

What I am not sure about is whether 'ansi' is the correct setting?

Thanks

Ian

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Problem with UK pound sign £ in PDF reports
« Reply #3 on: September 10, 2012, 11:16:41 PM »
try setting the charset to
'utf-8'
and the "Store Data As" to ASCII, or "Western Europe". Or did you set it to Central Europe for a reason?

Remember when testing to type _new_ characters. ie the state of the symbols already in the TPS file could be wrong, so is not useful for testing moving forward.

You _really_ want the site to be using the utf-8 charset for display, especially going forwards, so it's good to make every effort to stay on that.

cheers
Bruce


ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
Re: Problem with UK pound sign £ in PDF reports
« Reply #4 on: September 10, 2012, 11:23:08 PM »
I am using currently Nettalk 5.32 and there is not a "Western Europe" in the droplist. I have:
UTF-8
Spanish
Portuguese
Danish
Baltic
Central Europe
Eastern Europe

Is there a way in code to set to Western Europe?
Thanks
Ian

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Problem with UK pound sign £ in PDF reports
« Reply #5 on: September 11, 2012, 12:40:21 AM »
unfortunately I don't know the specifics of 5.32 Ian.
You probably should at least be on a recent NT5 build.

In your case I guess you're best of setting the charset to 'iso-8859-1' and see what that does.
Not ideal, but might be sufficient for you.

cheers
Bruce