File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Spaces are getting converted to Â characters.
Joined: Jul 08, 2010
Jul 23, 2012 04:26:52
Whenever I am trying to save the words that are copied from MS Word to
text box in the database(MySQL) the spaces are getting converted to Â characters.
I am using the following line in the jsp page may be it is converting the spaces to these characters.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Is the charset UTF-8 is need to be set for the Table column.
Why the spaces are getting converted to Â characters when they saved in the database? Please help.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 23, 2012 06:33:15
What you see in WORD as a space is not really an ASCII space - the characters are not being converted, Word is supplying them.
Microsoft WORD does all sorts of tricks with punctuation and other character - for example "smart punctuation." This creates a ghastly problem for programmers.
It is possible to force Word to save as text with conversion to a regular character set.
Using a programmer's editor that can display the hex values of characters you can figure out what Word is actually writing and how to change the characters to normal ASCII or UNICODE.
I agree. Here's the link:
subject: Spaces are getting converted to Â characters.
How to set Multilanguage Subject in Javax.mail
Problem while storing Japanese characters in Oracle 9i
extraneous characters getting introduced in XML
displaying special characters on struts:jsp page
How to fix . . . .?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015