Solved

Saving Bullets to SQL Server 2000

Posted on 2004-03-24
14
233 Views
Last Modified: 2010-04-01
Hello Expert,
I was wondering if you can help me I have a JSP page and on it I have a textarea, and lets say the user enters data in like

Southern Ontario's largest conference for early childhood education practitioners, administrators and future professionals takes place at the Doon campus of Conestoga College in Kitchener on March 26-27.

Is this Titled Early Childhood ? . . . Where It All Begins, the event is sponsored by kidsLINK Preschool Support Services, the Region of Waterloo Children's Services Division and the Early Childhood Education program of Conestoga College.
•      One
•      Two
•      Three
It saves to the sql server as
Is this Titled Early Childhood ? . . . Where It All Begins, the event is sponsored by kidsLINK Preschool Support Services, the Region of Waterloo Children's Services Division and the Early Childhood Education program of Conestoga College.
?      One
?      Two
?      Three
My problem is the bullets it changes them to question marks I want them to stay as bullets any suggestions as to why it is doing this?
Thanks
0
Comment
Question by:jvoros1
  • 8
  • 5
14 Comments
 
LVL 14

Accepted Solution

by:
kennethxu earned 500 total points
ID: 10668761
I had exactly same experience before. if my memory serves me,

first of all, you need to use prepared statement.
2ndly, put charset in your jsp page.

let me know if that fixes your problem.
0
 
LVL 92

Expert Comment

by:objects
ID: 10674255
The ? typically represent a character that the font being used cannot display.
You need to check the actual byte value being inserted in the database to check if the problem is there, or just that whatever is displaying it does is using a font where that value is undefined.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10674303
the ? occurs when java try to convert a character from on charset to another. either the character is not in target charset or the charset in choose is wrong.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 92

Expert Comment

by:objects
ID: 10674320
> either the character is not in target charset or the charset in choose is wrong.

ie. it cannot be displayed by the font being used :)
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10677132
it's already converted to ? in the server end, has nothing to do with the font!
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10677179
as least it was the situation that I have experienced under exactly same environment. user copy and paste content from word document.
0
 
LVL 92

Expert Comment

by:objects
ID: 10682027
> it's already converted to ? in the server end, has nothing to do with the font!

You have no way of knowing that, thats why I suggested checking what byte value was actually stored in the database to determine exactly where the problem was manifesting itself.
Try inserting just a bullet and see what goes in the db.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10682204
>> You have no way of knowing that,
Asker already said in the question:

It saves to the sql server as
.....
0
 
LVL 92

Expert Comment

by:objects
ID: 10682918
I asked what *byte* values are saved to the database, how the string displays is irrelevant.
And I also asked jvoros1 not you, so please stop being so argumentative.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10682994
objects, YOU was the one that started all the arguments. In this thread and all other threads!
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10683012
>>And I also asked jvoros1 not you,
who's one started to make such comment:

Comment from objects
Date: 03/24/2004 08:35PM PST
 Comment  


> either the character is not in target charset or the charset in choose is wrong.

ie. it cannot be displayed by the font being used :)

 
0
 

Author Comment

by:jvoros1
ID: 10691622
Thanks I have it working :)
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10691662
glad to know it's working :)
0
 
LVL 92

Expert Comment

by:objects
ID: 10692940
For the benefit of others reading this question in the furure please post what you changed to fix it.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
issue with pdf generation 2 90
J2SE 5.0 metadata 1 57
some methods private some are not 8 212
javax.naming.NameNotFoundException: Name ... is not bound in this Context. 6 266
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question