NetTalk Central

Author Topic: Net:f:filename - Norwegian characters  (Read 3994 times)

frode

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Net:f:filename - Norwegian characters
« on: March 29, 2011, 09:55:29 AM »
Hi,

I have these charset settings in my webserver(Nettalk 5.20):
charset: utf-8
store data as: Danish

When i use <!-- Net:f:filename --> to include fixed html code the Norwegian characters åøæ shows incorrectly in my webbrowser.
Please see screenshot: http://dl.dropbox.com/u/803077/nettalk5charset.png

The first line is coded in the template prompts(shows correctly) and the second one html from an external file using net:f:
Same html tag used:  <br>Test norwegian chars åøæ</br>

How do I make them display correctly. Is there a setting that I have missed ?

Thanks,
Frode

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Net:f:filename - Norwegian characters
« Reply #1 on: March 29, 2011, 08:42:33 PM »
Hi Frode,

I think your best bet is to save the htm file as a utf file.
Most editors (although not clarion) allow this as an option.
If you need more let me know, and let us know if that works.

cheers
Bruce

frode

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Net:f:filename - Norwegian characters
« Reply #2 on: March 29, 2011, 10:59:42 PM »
Hi Bruce,

That worked. I used Ultraedit to convert the file to utf

Thanks,
Frode

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Net:f:filename - Norwegian characters
« Reply #3 on: March 31, 2011, 06:11:18 AM »
Hi Frode,

You may know this already, but in case you have a need to enter text directly on a page (using the Xhtml tab) you must encode special chars - and æ,ø,å are considered special in this respect. The html encoding for æ,ø,å is:

&aelig;
&oslash;
&aring;

Peter

frode

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Net:f:filename - Norwegian characters
« Reply #4 on: April 01, 2011, 02:01:02 AM »
Hi Peter,

Thanks for the tip.

Frode