# UnsupportedEncodingException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# UnsupportedEncodingException

```
open class UnsupportedEncodingException : IOException
```

|---|---|---|---|------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                        |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)                                         ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)                                    |||
|   |   | ↳ | [java.io.IOException](https://developer.android.com/reference/kotlin/java/io/IOException)                                       ||
|   |   |   | ↳ | [java.io.UnsupportedEncodingException](https://developer.android.com/reference/kotlin/java/io/UnsupportedEncodingException#) |

The Character Encoding is not supported.

## Summary

|                                                                                                                                                       Public constructors                                                                                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [UnsupportedEncodingException](https://developer.android.com/reference/kotlin/java/io/UnsupportedEncodingException#UnsupportedEncodingException())`()` Constructs an UnsupportedEncodingException without a detail message.                                                                                                   |
| [UnsupportedEncodingException](https://developer.android.com/reference/kotlin/java/io/UnsupportedEncodingException#UnsupportedEncodingException(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an UnsupportedEncodingException with a detail message. |

## Public constructors

### UnsupportedEncodingException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
UnsupportedEncodingException()
```

Constructs an UnsupportedEncodingException without a detail message.  

### UnsupportedEncodingException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
UnsupportedEncodingException(s: String!)
```

Constructs an UnsupportedEncodingException with a detail message.

|                                                           Parameters                                                           ||
|-----|---------------------------------------------------------------------------------------------------------------------------|
| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:Describes the reason for the exception. |