htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Problem with utf-8 ( becomes £)


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


Martin_Edney
Novice

Feb 9, 2005, 9:15 AM

Post #1 of 5 (8056 views)
Shortcut
Problem with utf-8 ( becomes £) Can't Post

I have a web page that uses htmlareas (v2.03). It works fine in Mozilla Firefox, in that the htmlareas don't display, and I get plain text boxes that receive my data and send it to the database just as I need.

However, when I user internet explorer, any "extended" character that I enter into an htmlarea such as or is getting garbled on its way to the database (being stored as £).

To give the full story, the whole application used to work fine, both in IE (with htmlareas) and in Firefox (without htmlareas). Then it was moved to a new web server, where the Apache web server is set to deliver its pages using utf-8 character set, while the MySQL database uses Latin-1 (ISO-8859-1) (previously both web server and database used the same character set). So I've had to add some extra php code to utf-8-encode data on its way from the database to be displayed on the web page. This works fine when running the application in Firefox (no htmlareas), but not in IE (with htmlareas), as described above.

Any ideas please?

Thanks,

Martin


Luis
Veteran

Feb 9, 2005, 9:37 AM

Post #2 of 5 (8043 views)
Shortcut
Re: [Martin_Edney] Problem with utf-8 ( becomes £) [In reply to] Can't Post

Hi Martin:

You need to convert your special characters into character entities, meaning you need to convert TM into &trade into © etc. Attach your editor and I'll gladly integrate that mod for you.

Greetings


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Feb 9, 2005, 9:37 AM)


Martin_Edney
Novice

Feb 9, 2005, 10:04 AM

Post #3 of 5 (8035 views)
Shortcut
Re: [Luis] Problem with utf-8 ( becomes £) [In reply to] Can't Post

Luis,

Thanks for your quick reply, and offer of help. When you said "attach your editor", I assume I'm meant to attach editor.js, which I've done. It's just the standard file downloaded with the rest of htmlarea 2.03, without any other modifications.

I'd be interested to know the details of the mod, in case I need to use it in a different project.

Let me know if you need any other files.

Thanks again,

Martin
Attachments: editor.js (45.8 KB)


Martin_Edney
Novice

Feb 15, 2005, 2:25 AM

Post #4 of 5 (7974 views)
Shortcut
Re: [Martin_Edney] Problem with utf-8 ( becomes £) [In reply to] Can't Post

Luis,

Have you forgotten your offer of help with this problem, or have you been too busy? Sorry to chase you, but lots of people are moaning at me because they can't currently use the application, so I'd like to get this one fixed soon.

Thanks,

Martin


Luis
Veteran

Feb 15, 2005, 3:24 PM

Post #5 of 5 (7964 views)
Shortcut
Re: [Martin_Edney] Problem with utf-8 ( becomes £) [In reply to] Can't Post

Hi Martin:

I've not forgotten. It happens I've been sick in bed for the last week. I'll try to do it as soon as I feel better.

Greetings


Don't give up!!
http://webstationone.com/test/htmlarea

 
 
 


Search for (options)