Help gets you when you need it!
Read this and you will learn that there is no such thing as a plain text file.Maki Jav wrote:It is just a plain text file . . .
Campbell Ritchie wrote:a Swing component (e.g. J Option Pane) will display the correct character.
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Tim Moores wrote:That's a matter of specifying the correct encoding when reading the file, and whenever you want to display it afterwards. What encoding is the file in?
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Tim Moores wrote:It all seems to hinge on the encoding, so as long as you don't know that, you're not in a position to change your code to deal with it properly.
... much better to agree on a file encoding with your client, and then to use that appropriately.
In which case, reading the article thoroughly should count as part of your work. As people have said, if you don't understand the encoding problem there is no chance of you solving the rest of the problem.Maki Jav wrote:I am in office working, developing, so I read in bird-eye view.
Don't try doing two things at the same time. Consider whether you should continue with this problem, or whether to get one of your colleagues to sign in here and continue the discussion.I am working on another issue right now but want to help my colleagues.
No, you can't. But you can ask them to specify an encoding for you to use, and insist they notify you whenever they change encodings. It is very easy to change the encoding you are using, as long as you know.. . . we . . . cannot tell our clients to use a utf-8 or so an so encode files while uploading. . . .
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|