Print Page | Close Window

Special character problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27816
Printed Date: 28 March 2026 at 2:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Special character problem
Posted By: jasjmorris
Subject: Special character problem
Date Posted: 10 September 2009 at 7:21pm

Ok i have a new one for you.

I tested here on the forums and it doesn't do the same but on my server when the users are adding special characters like ½ it will look correct on insert but after submit and going in a viewing the post it will show ½.   Checked in the database mysql and it added both special characters in the field.
 
now i've set it up so users can go back in and edit their own post and when they do that it will just show the ½ by itself.
 
is there anyone that can explain/help me with this i am scratching my head hard on this one.. i think i am getting bits of hair out.
 
I could honestly care less about the special characters but the users are complaining about it.. parently they just can't type 1/2.. lol



Replies:
Posted By: WebWiz-Bruce
Date Posted: 11 September 2009 at 6:16am
This will be a character encoding issue.

You could try changing the encoding on your web pages, for example this page is set to UTF-8:-

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

It could also be coursed by the character set on the mySQL database. I have to admit I much prefer SQL Server when working with Microsoft technologies they work much better together.

However, if you change encodings you do risk messing up the encoding displayed for everything else already saved to the database.




-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: jasjmorris
Date Posted: 12 September 2009 at 6:00am

Thanks for the response. I have check and in my header file i already had that code on the top.

any checked my database its set to "UTF-8 Unicode (utf8)"

So is there anything else it could be, or i could try?


Posted By: jasjmorris
Date Posted: 14 September 2009 at 6:26pm

any thoughts on this yet? hate to be a pest.



Posted By: WebWiz-Bruce
Date Posted: 15 September 2009 at 11:57am
These types of encoding issues can be very difficult to fix as they are related to browser, server setup, sofwtare setup, etc., etc.

If changing the page encoding doesn't help the best solution I can offer is use SQL Server not mySQL as SQL Server I find is generally much better at these types of things than mySQL.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: jasjmorris
Date Posted: 16 September 2009 at 8:34am
Alright thanks for the help anyways. I don't have the option for sql as the hosting is paid by the company.
Thank i could include a code to strip that character out of the output?


Posted By: WebWiz-Bruce
Date Posted: 16 September 2009 at 8:48am
What I would do is to replace the 1/2 character with the HTML encoding for it, so that the 1/2 stays in but is correctly displayed:-

strMyFormData = Replace(strMyFormData, "½", "&#189;")

Obviously replace the strMyFormData variable with what ever the name is of the variable that you read the form data into. You may also need to do a little paying around with the above if the ½ is encoded differently.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net