<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSString/availableStringEncodings",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSString(cpy)availableStringEncodings"
  },
  "title" : "availableStringEncodings"
}
-->

# availableStringEncodings

Returns a zero-terminated list of the encodings string objects support in the application’s environment.

```
class var availableStringEncodings: UnsafePointer<UInt> { get }
```

## Return Value

A zero-terminated list of the encodings string objects support in the application’s environment.

## Discussion

Among the more commonly used encodings are:

- [`NSASCIIStringEncoding`](/documentation/Foundation/NSASCIIStringEncoding)
- [`NSUnicodeStringEncoding`](/documentation/Foundation/NSUnicodeStringEncoding)
- [`NSISOLatin1StringEncoding`](/documentation/Foundation/NSISOLatin1StringEncoding)
- [`NSISOLatin2StringEncoding`](/documentation/Foundation/NSISOLatin2StringEncoding)
- [`NSSymbolStringEncoding`](/documentation/Foundation/NSSymbolStringEncoding)

See the [`NSStringEncoding`](/documentation/Foundation/NSStringEncoding) type for a larger list and descriptions of many supported encodings. In addition to those encodings listed here, you can also use the encodings defined for CFString in Core Foundation; you just need to call the <doc://com.apple.documentation/documentation/CoreFoundation/CFStringConvertEncodingToNSStringEncoding(_:)> function to convert them to a usable format.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)