Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-08-26
5
Medium Priority
?
296 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

Industry Leaders: 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!

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

927 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