Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

textfield and UTF-8 format  RSS feed

 
tun zaw
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

I have some problem with utf-8 and java textfield. How can i get utf-8 format form textfield.
i use myanmar alphazawgyi code system.


please help me.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with that particular script, but generally you'd use the getText() method to get a String containing the contents of the TextField. You could then obtain a byte array that's UTF-8 encoded via String.getBytes("UTF-8"). Is that what you're asking?
 
tun zaw
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes

thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!