# `GSEncodeString`

*Function*

## Declaration

```swift
func GSEncodeString(_ string: String!, _ data: CFMutableData!, _ escape: Bool)
```

```objc
void GSEncodeString(NSString *string, CFMutableDataRef data, BOOL escape);
```

```python
GSEncodeString(string: str, data: CFMutableDataRef, escape: bool)
```

## See Also

- [`nullTerminatedASCIIDataWithString`](/Core/GlyphsCore/nullTerminatedASCIIDataWithString)
- [`nullTerminatedASCIIDataWithPropertyList`](/Core/GlyphsCore/nullTerminatedASCIIDataWithPropertyList)
- [`dataWithPropertyList`](/Core/GlyphsCore/dataWithPropertyList)
- [`stringWithPropertyList`](/Core/GlyphsCore/stringWithPropertyList)
- [`stringWithPropertyListNoEscape`](/Core/GlyphsCore/stringWithPropertyListNoEscape)
- [`writePropertyListToFile`](/Core/GlyphsCore/writePropertyListToFile)
- [`writePropertyListToFileNoEscape`](/Core/GlyphsCore/writePropertyListToFileNoEscape)
- [`GSEncodeArray`](/Core/GlyphsCore/GSEncodeArray)
- [`GSEncodePoint`](/Core/GlyphsCore/GSEncodePoint)
- [`GSEncodeFloat`](/Core/GlyphsCore/GSEncodeFloat)
- [`GSEncodeColor`](/Core/GlyphsCore/GSEncodeColor)
- [`GSFlattenDictionary`](/Core/GlyphsCore/GSFlattenDictionary)
- [`GSFlattenArray`](/Core/GlyphsCore/GSFlattenArray)

