---
title: NSString.EncodingConversionOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsstring/encodingconversionoptions
---

# NSString.EncodingConversionOptions

Options for converting string encodings.

## Declaration

```swift
struct EncodingConversionOptions
```

## Overview

Overview These constants are available in OS X v10.4; they are, however, differently named: typedef enum {     NSAllowLossyEncodingConversion = 1,     NSExternalRepresentationEncodingConversion = 2 } NSStringEncodingConversionOptions; You can use them in OS X v10.4 if you define the symbols as extern constants.

## Topics

### Constants

- [allowLossy](foundation/nsstring/encodingconversionoptions/allowlossy.md)
- [externalRepresentation](foundation/nsstring/encodingconversionoptions/externalrepresentation.md)

### Initializers

- [init(rawValue:)](foundation/nsstring/encodingconversionoptions/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Identifying and Comparing Strings

- [caseInsensitiveCompare(_:)](foundation/nsstring/caseinsensitivecompare(_:).md)
- [localizedCaseInsensitiveCompare(_:)](foundation/nsstring/localizedcaseinsensitivecompare(_:).md)
- [compare(_:)](foundation/nsstring/compare(_:).md)
- [localizedCompare(_:)](foundation/nsstring/localizedcompare(_:).md)
- [compare(_:options:)](foundation/nsstring/compare(_:options:).md)
- [compare(_:options:range:)](foundation/nsstring/compare(_:options:range:).md)
- [compare(_:options:range:locale:)](foundation/nsstring/compare(_:options:range:locale:).md)
- [localizedStandardCompare(_:)](foundation/nsstring/localizedstandardcompare(_:).md)
- [hasPrefix(_:)](foundation/nsstring/hasprefix(_:).md)
- [hasSuffix(_:)](foundation/nsstring/hassuffix(_:).md)
- [isEqual(to:)](foundation/nsstring/isequal(to:).md)
- [hash](foundation/nsstring/hash.md)
- [NSString.CompareOptions](foundation/nsstring/compareoptions.md)
