---
title: "localizedName(of:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/string/localizedname(of:)"
---

# localizedName(of:)

Returns a human-readable string giving the name of the specified encoding.

## Declaration

```swift
static func localizedName(of encoding: String.Encoding) -> String
```

## Parameters

- `encoding`: A string encoding. For possible values, see String.Encoding.

## Return Value

Return Value A human-readable string giving the name of encoding in the current locale.

## See Also

### Working with Encodings

- [availableStringEncodings](swift/string/availablestringencodings.md)
- [defaultCStringEncoding](swift/string/defaultcstringencoding.md)
- [isContiguousUTF8](swift/string/iscontiguousutf8.md)
- [makeContiguousUTF8()](swift/string/makecontiguousutf8().md)
- [withUTF8(_:)](swift/string/withutf8(_:).md)
