# FMOD\_System\_CreateSound Does not support Chinese directory？

**URL:** <https://qa.fmod.com/t/fmod-system-createsound-does-not-support-chinese-directory/20703>\
**Category:** FMOD Engine\
**Created:** [September 26, 2023, 12:47pm UTC](https://qa.fmod.com/t/fmod-system-createsound-does-not-support-chinese-directory/20703 "2023-09-26T12:47:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iaiqol](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@iaiqol](https://qa.fmod.com/u/iaiqol)\
**Post date:** [September 26, 2023, 12:47pm UTC](https://qa.fmod.com/t/fmod-system-createsound-does-not-support-chinese-directory/20703/1 "2023-09-26T12:47:18Z")

</div>

FMOD\_System\_CreateSound(FManager.System, PAnsiChar(FileName), FModMode, [@FMOD](https://qa.fmod.com/groups/fmod), @FMp3Sound);

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [September 28, 2023, 2:44am UTC](https://qa.fmod.com/t/fmod-system-createsound-does-not-support-chinese-directory/20703/2 "2023-09-28T02:44:15Z")

</div>

Hi,

[FMOD expects all strings to be UTF-8](https://www.fmod.com/docs/2.01/api/glossary.html#string-format), which means that it does support Chinese characters. However, it’s possible that the string you’re passing to the function is encoded with a code page set for the local machine (i.e. ANSI code pages like [Windows-1252](https://en.wikipedia.org/wiki/Windows-1252)), meaning that it may not be UTF-8.

There’s two ways to fix this:

- The easiest way is to use the `u8` prefix on your string - `const char *path = u8"C:\\my\\path\\here\\";`
- The `u8` prefix will not work on strings that are not string literals, for example strings retrieved from some other API or system. In this case, you’ll need to convert the string to UTF-8 yourself. On Windows, this can be done with [MultiByteToWideChar](https://learn.microsoft.com/en-us/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar).

---

<div class="post-metadata">

**Author:** ![iaiqol](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@iaiqol](https://qa.fmod.com/u/iaiqol)\
**Post date:** [October 2, 2023, 12:38pm UTC](https://qa.fmod.com/t/fmod-system-createsound-does-not-support-chinese-directory/20703/3 "2023-10-02T12:38:34Z")

</div>

Thank you very much. I’ll try it
