Re: character encoding problem



On Fri, 15 Jun 2007 01:31:51 +0200, bj
<dinamo@xxxxxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :

i've got the following problem :
i'am getting some string with polish characters as some artifacts how
can i change these letters back to normal polish letters??
i've tried something like that

new String(b.getDescription().getBytes("UTF-8"),"ISO-8859-1")

but it didn't work, i've got still some dirty characters in string

You have to be careful with terms. A string is 16-bit characters. You
probably have some bytes, some sort of 8-bit encoding.

In any case, my essay on encoding should tell you more than you wanted
to know about translating back and forth.

http://mindprod.com/jgloss/encoding.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: [OT] Re: Increasing efficiency in C
    ... reasonable value and build a lookup table for converting from letters ... the target string with the candidate string ... Other characters cannot be ... Dan Pop ...
    (comp.lang.c)
  • Re: string combination
    ... combination of letters of any inputted string? ... it does not deal with repeated characters (so perms of aaa would be ... void showpermutations(char *prefix, char *word) { ...
    (comp.lang.c)
  • Re: Using MS Main Library in Access VBA
    ... >>>combinations for those seven letters (I have been able to do this pretty ... >> to that is to place a string of characters in a textbox, ... >Function WordSpellCheck(WordToCheck As String) As Boolean ... >instantiate Word as a module-level object, ...
    (microsoft.public.access.formscoding)
  • Re: Find String in another string - only between spaces
    ... beginning or end of the string or between spaces or signs. ... Do you mean you need to find the substring AB as long as the characters ... on either side of it, if any, aren't letters? ...
    (microsoft.public.excel.worksheet.functions)
  • Re: how to split a string using ,fixed character length, variable text delimmiter
    ... could see it and maybe help determine its format. ... It appears to be always at least 20 characters long. ... It is always composed of letters ranging from A-Z, ... a string in encountered that is at least 20 characters long, ...
    (microsoft.public.dotnet.languages.csharp)