java.lang.IllegalArgumentException: ucnv_fromUnicode failed: U_ILLEGAL_ARGUMENT_ERROR

Stack Overflow | 4ntoine | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    android CharsetEncoder.canEncode exception

    Stack Overflow | 6 months ago | 4ntoine
    java.lang.IllegalArgumentException: ucnv_fromUnicode failed: U_ILLEGAL_ARGUMENT_ERROR

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      ucnv_fromUnicode failed: U_ILLEGAL_ARGUMENT_ERROR

      at libcore.icu.NativeConverter.encode()
    2. Android
      NativeConverter.encode
      1. libcore.icu.NativeConverter.encode(NativeConverter.java)
      1 frame
    3. Java RT
      CharsetEncoder.canEncode
      1. java.nio.charset.CharsetEncoderICU.implFlush(CharsetEncoderICU.java:140)
      2. java.nio.charset.CharsetEncoder.flush(CharsetEncoder.java:464)
      3. java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:266)
      4. java.nio.charset.CharsetEncoder.canEncode(CharsetEncoder.java:202)
      4 frames
    4. Unknown
      CorrectLocationUtfTokenizable.isPureAscii
      1. CorrectLocationUtfTokenizable.isPureAscii(CorrectLocationUtfTokenizable.java:38)
      1 frame