java.lang.IllegalArgumentException: ucnv_fromUnicode failed: U_ILLEGAL_ARGUMENT_ERROR

Stack Overflow | 4ntoine | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    android CharsetEncoder.canEncode exception

    Stack Overflow | 7 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