Solved

Saving Bullets to SQL Server 2000

Posted on 2004-03-24
14
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Looking for some programs to resell or buy source codes 1 78
maven webservice example issue 2 157
main method of string class 3 122
spring maven example issues 3 42
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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