This seems close to what I'm looking for, but not quite it.  I don't
want a single replacement char for all weird chars.  I want weird
hyphens replaced with normal hyphens, weird single quotes replaced
with normal single quotes , weird double quotes replaced with normal
double quotes, weird apostrophes replaced with normal apostrophes,
etc.



On Sep 11, 2:39 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
> Use CharsetEncoder:
>
> http://developer.android.com/reference/java/nio/charset/CharsetEncode...
>
> Specify onUnmappableCharacter(REPLACE) and set your own replacement with
> replaceWith()
>
> http://developer.android.com/reference/java/nio/charset/CharsetEncode...)
> <http://developer.android.com/reference/java/nio/charset/CharsetEncode...>
>
> http://developer.android.com/reference/java/nio/charset/CharsetEncode...[])
> <http://developer.android.com/reference/java/nio/charset/CharsetEncode...[]%29>
>
> -- Kostya
>
> 11.09.2011 7:37, bob пишет:
>
> > How do I tell Java what to replace a special UTF-8 character with when
> > converting to US-ASCII?
>
> --
> Kostya Vasilyev

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to