# PVRTexLib: Save texture into utf-8 path

**URL:** <https://forums.imgtec.com/t/pvrtexlib-save-texture-into-utf-8-path/1489>\
**Category:** PowerVR Insider\
**Created:** [August 3, 2012, 10:28am UTC](https://forums.imgtec.com/t/pvrtexlib-save-texture-into-utf-8-path/1489 "2012-08-03T10:28:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seb](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@seb](https://forums.imgtec.com/u/seb)\
**Post date:** [August 3, 2012, 10:28am UTC](https://forums.imgtec.com/t/pvrtexlib-save-texture-into-utf-8-path/1489/1 "2012-08-03T10:28:53Z")

</div>

I have the issue to store a image by using CPVRTexture::saveFileLegacyPVR. It fails when the target path contains any unicode characters, like chinese. For latin characters it works.
Is there any way to solve this problem?
  
seb2012-08-03 12:44:25

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [August 3, 2012, 12:36pm UTC](https://forums.imgtec.com/t/pvrtexlib-save-texture-into-utf-8-path/1489/2 "2012-08-03T12:36:19Z")

</div>

Hi Seb,  
  
This is nothing specific to PVRTexLib - internally it just calls fopen with whatever byte string you pass to it. The success or failure of this command should depend solely on the underlying file system - nothing else is touched on by the library, all it sees is a byte string.  
  
This may depend on the your system’s “locale” - i.e. where it thinks it is. If the locale includes concessions for utf-8, then the function should work with utf-8. Checking this sort of information will depend on what system you’re running on however.  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![seb](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@seb](https://forums.imgtec.com/u/seb)\
**Post date:** [August 3, 2012, 1:43pm UTC](https://forums.imgtec.com/t/pvrtexlib-save-texture-into-utf-8-path/1489/3 "2012-08-03T13:43:22Z")

</div>

Thank you for the answer. The point is that our application is created with VS2010 and the locale is english&nbsp;locale. The locale can’t be changed and VS C++ seems to not support setting of utf-8 locale.
