Solved

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

Posted on 2001-08-26
5
287 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 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

15 Experts available now in Live!

Get 1:1 Help Now