Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Special characters
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Special characters

 Post Reply Post Reply
Author
jupiter View Drop Down
Newbie
Newbie


Joined: 29 December 2011
Location: Nederland
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote jupiter Quote  Post ReplyReply Direct Link To This Post Topic: Special characters
    Posted: 26 November 2012 at 9:13pm
I'm using RTE 4.08. I can insert special characters in the edit window, save the result in a file, open it again in RTE and the characters are displayed just fine. I cannot - however - work out the settings to display the special characters outside of RTE, so when displaying the edited file directly in the browser. When using IE one can select the encoding via the right mouse button. Utf-8 is selected (as intended). Only if I select 'Western Europe' the characters are displayed correctly. Adding <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> to the file does not help. So I'm stuck and help would be highly appreciated. 
In trying to solve this problem, I also tried to use the HTML escape sequences (eg &euro; for the euro symbol). Funny thing is that these are directly replaced by the non-asci symbol for the euro, once the file is edited in RTE. Yet I cannot find the code responsible for this.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2012 at 11:09am
You need to make sure that you set the correct page encoding within your HTML pages display the code created in the RTE.

The HTML produced is controlled by the web browser itself. For example the HTML produced by IE is nowhere are clean as that by Firefox or Chrome. It would be IE that converts HTML encoded characters. 
Back to Top
jupiter View Drop Down
Newbie
Newbie


Joined: 29 December 2011
Location: Nederland
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote jupiter Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2012 at 8:06pm
I'm using UTF-8 through the entire site, yet cannot display the €. Only when using IE and selecting (in the browser) Western ISO, the € is displayed. Isn't that strange? Otherwise I'm using Chrome and that did the replacement of &euro; in €
Back to Top
jupiter View Drop Down
Newbie
Newbie


Joined: 29 December 2011
Location: Nederland
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote jupiter Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2012 at 9:41pm
I'm getting the idea that this has nothing to do with RTE, but with the difference between reading a file with .asp and reading that file directly by the http server. And indeed: storing/reading the file as unicode solves the problem! But this immediately causes a new problem: the html files aren't editable anymore directly. Sigh..
 
Is there anybody using RTE with files stored on the files system (as opposed to in a database)? Any pointers how to do that with respect to special symbols?


Edited by jupiter - 29 November 2012 at 3:53pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.