The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Java Help
|
difference between “” and ""
Discuss difference between “” and "" in the Java Help forum on Dev Shed. difference between “” and "" Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 12th, 2002, 08:24 PM
|
|
Registered User
|
|
Join Date: Jun 2002
Posts: 16
Time spent in forums: 3 h 21 m 31 sec
Reputation Power: 0
|
|
difference between “” and ""
The data file (*.txt) I tried to bulkload into MySQL database
contains some “” instead of "" in the strings. When I tried to show those as links on JSP, I found that they changed into question mark '?'. And when I click the links, I want to call another JSP to show the contents related to the strings. And of course in this case the search failed. MySQL does not support “”, right?
Can anyone help me out? Thank you very much!
|

June 13th, 2002, 10:29 AM
|
|
Clueless llama
|
|
Join Date: Feb 2001
Location: Lincoln, NE. USA
|
|
|
My first guess would be that the hex code for that character is being interpreted different by the different parsers. Browsers and Java use unicode as far as I know, but what about mysql? What character is the correct one? It is highly possible that mysql is indeed changing the character into something it thinks it should be. In the end, none of what we type is really characters at all, it is only hex values that something must then convert into characters.
|

June 13th, 2002, 06:14 PM
|
|
Registered User
|
|
Join Date: Jun 2002
Posts: 16
Time spent in forums: 3 h 21 m 31 sec
Reputation Power: 0
|
|
|
Thank you very much! When I checked it in MySQ and also read it under Unix system, I found that all “” turned into ô, and some of dash - turned into û.
Can we configure MySQL to accept those characters, or we need to convert all “” into "" before loading the data file into MySQL?
Thanks a lot.
|

June 13th, 2002, 10:53 PM
|
|
Clueless llama
|
|
Join Date: Feb 2001
Location: Lincoln, NE. USA
|
|
If it is indeed supposed to be a double quote, I would convert it to that I guess. I do not know what kind of data you are using, so it is hard to say how critical that would be. Regardless of what it is, make sure and encode it if you are using it in a url.
http://java.sun.com/j2se/1.4/docs/a...URLEncoder.html
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|