Solved

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

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

617 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