Solved

how to get special characters like(square root , theta) ?

Posted on 2001-08-26
5
290 Views
Last Modified: 2008-02-20
hi all

I am having a problem that i am having physics equations in my DB (ACCESS) and after that i am converting it to .txt file. After i convert it to text file i loose special characters like square root sign , theta etc.

then i have to serialize this file and pick data up from
this file.

Pls give me some ideas on it...... i have tried alot and unable to get any solution as of now..........

To key in the special characters like square root and theta etc. we copied the signs from word into Access.

Is it the problem with DB?

Help required urgently....

thanx in advance

harpreet
0
Comment
Question by:harrpreet
5 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 6428744
> then i have to serialize this file and pick data up from

use Writers and save chars in the file (not bytes)
char = Unicode char
byte = ASCII symbol

(or use some appropriate encoding)
0
 

Author Comment

by:harrpreet
ID: 6430704
hi heyhey

what i am doing is that when i convert the data from DB ro a .txt file or to a .doc file then only i loose the special characters. After that i serialize this (my generated .doc or .txt file).

Any ideas on that.........

I have tried it to convert it to unicode also but i  think i am making mistake somewhere......

Can anybody send some code for it?? or should i post my code what i have written......

help required urgently....

Thanx to all

0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6430948
Java String's contain Unicode symbols only. possible problems are
1. you cannot read the Unicode symbols from Access database (bad driver, bad encoding specified etc.)
2. you cannot write/read Unicode symbols to/from file.

I've already explained how to solve problem 2. problem 1. is more tricky and depends on your environment.

can you check if your Java app receives 'GOOD' Unicode symbols ? (print them as hex codes, not chars)
0
 
LVL 5

Expert Comment

by:vemul
ID: 7773603
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- To be PAQ'ed and points NOT refunded

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7861631
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
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
allswap challenge 6 99
Oracle SQL syntax check  without executing 6 56
hibernate example using maven 12 42
printf performancy 11 43
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

809 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