🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages Started by Bradley Kieser Tue, 21 Dec 2004 17:07
How to set JtextField character encoding?
#766
Author: Bradley Kieser
Date: Tue, 21 Dec 2004 17:07
3 lines
1203 bytes
How do I determine the character encoding for a JTextField? I am reading 
this value to post to a database. Some symbols are not coming out 
correctly such as �.
Re: How to set JtextField character encoding?
#767
Author: Alexey N. Solofnenko
Date: Tue, 21 Dec 2004 17:14
9 lines
1265 bytes
Java strings are in Unicode. I think your database is not setup to store 
Unicode characters.

- Alexey.

Bradley Kieser wrote:
> How do I determine the character encoding for a JTextField? I am reading 
> this value to post to a database. Some symbols are not coming out 
> correctly such as £.
Re: How to set JtextField character encoding?
#768
Author: Lori M Olson [TeamB]
Date: Tue, 21 Dec 2004 17:53
38 lines
2312 bytes
Alexey N. Solofnenko wrote:
> Java strings are in Unicode. I think your database is not setup to store 
> Unicode characters.
> 
> - Alexey.
> 
> Bradley Kieser wrote:
> 
>> How do I determine the character encoding for a JTextField? I am 
>> reading this value to post to a database. Some symbols are not coming 
>> out correctly such as £.

Actually, there can been a lot more to it than that.  But it varies 
(this is special) according to which RDBMS you are using.  With that 
information I could give a more helpful response.

(BTW, for those ESL people out there who may be reading this, the 
comment "this is special" is meant to be sarcastic.)

-- 

Regards,

Lori Olson [TeamB]

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

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads