Stay organized with collections
Save and categorize content based on your preferences.
Encoding
class Encoding
Supported character encodings.
Summary
Enum values
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Xml.Encoding\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEncoding\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/Xml.Encoding \"View this page in Java\") \n\n```\nclass Encoding\n```\n\n|---|---|--------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.util.Xml.Encoding](#)\\\u003e ||\n| | ↳ | [android.util.Xml.Encoding](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Xml.Encoding.ISO_8859_1](#ENUM_VALUE:ISO_8859_1), [Xml.Encoding.US_ASCII](#ENUM_VALUE:US_ASCII), [Xml.Encoding.UTF_16](#ENUM_VALUE:UTF_16), [Xml.Encoding.UTF_8](#ENUM_VALUE:UTF_8) |---------------------------------------------------|--------| | [Xml.Encoding.ISO_8859_1](#ENUM_VALUE:ISO_8859_1) | \u003cbr /\u003e | | [Xml.Encoding.US_ASCII](#ENUM_VALUE:US_ASCII) | \u003cbr /\u003e | | [Xml.Encoding.UTF_16](#ENUM_VALUE:UTF_16) | \u003cbr /\u003e | | [Xml.Encoding.UTF_8](#ENUM_VALUE:UTF_8) | \u003cbr /\u003e | |\n\nSupported character encodings.\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------|---|\n| [ISO_8859_1](#ENUM_VALUE:ISO_8859_1) \u003cbr /\u003e |\n| [US_ASCII](#ENUM_VALUE:US_ASCII) \u003cbr /\u003e |\n| [UTF_16](#ENUM_VALUE:UTF_16) \u003cbr /\u003e |\n| [UTF_8](#ENUM_VALUE:UTF_8) \u003cbr /\u003e |\n\nEnum values\n-----------\n\n### ISO_8859_1\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ISO_8859_1 : Xml.Encoding\n``` \n\n### US_ASCII\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val US_ASCII : Xml.Encoding\n``` \n\n### UTF_16\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UTF_16 : Xml.Encoding\n``` \n\n### UTF_8\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UTF_8 : Xml.Encoding\n```"]]