Solved

Saving Bullets to SQL Server 2000

Posted on 2004-03-24
14
231 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 92

Expert Comment

by:objects
Comment Utility
> 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
Comment Utility
it's already converted to ? in the server end, has nothing to do with the font!
0
 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
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
Comment Utility
> 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
>> 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
Comment Utility
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
Comment Utility
objects, YOU was the one that started all the arguments. In this thread and all other threads!
0
 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
>>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
Comment Utility
Thanks I have it working :)
0
 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
glad to know it's working :)
0
 
LVL 92

Expert Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now