Skip to content

Commit 4859a47

Browse files
authored
README - update TextAsset description
1 parent f448fde commit 4859a47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ TextAssets are usually normal text files.
248248
- `.m_Name`
249249
- `.m_Script` - str
250250

251-
Some games save binary data as TextFile, so it's usually better to use `.script`.
251+
Some games save binary data as TextFile, so to convert the ``str`` back to bytes correctly ``m_Script.encode("utf-8", "surrogateescape")`` has to be used.
252252

253253
**Export**
254254

0 commit comments

Comments
 (0)