Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

670 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