Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Make a simple dictionary

  Asked By: Anita    Date: Jul 10    Category: Java    Views: 1656
  

i have an ASCII formatetted .txt file. I would like to make a simple
dictionary as an homework. but there is a problem with turkish character.

i am trying to solve it since 2 days .. i am not a person who give up
easy. but sorry no solution at the moment and i am here. is there
smone. who can help about this subject......

--------------------------more about hte problem.-------------------

there is an text field and buttons down to it.

i get text from textfield and keep it as a string, but my
(string)hashMap keys are not same like my strings :(

---------------------------------------------------------------------

IS THERE AN IDEA?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Leroy Schmidt     Answered On: Jul 10

Welcome! And good luck. Hope you won't need it (the luck), just plain
brain power.

 
Answer #2    Answered By: Edwin Chavez     Answered On: Jul 10

> i have an ASCII formatetted .txt file. I would like to make  a simple
> dictionary as an homework. but there is a problem  with turkish
character.

"Sub: Hello" is a such a pathetic subject for a post like this. Make
use of subject which gives an introduction of the question that you
are asking.

> i get text  from textfield  and keep it as a string, but my
> (string)hashMap keys  are not same like my strings  :(

The .txt file  that you are using to save the file, make sure that you
save the file as utf8 format character  set. That should solve  the problem.

 
Answer #3    Answered By: Burk Martin     Answered On: Jul 10

This won't work, To include non-ASCII characters, the file  must be
Unicode enabled. This means that each character  is 16 bits - the first
byte with ASCII is always 0x00.

 
Didn't find what you were looking for? Find more on Make a simple dictionary Or get search suggestion and latest updates.




Tagged: