Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1154

Is there an Unreal C++ function to parse a byte array to an FString with specific encoding?

$
0
0

I am working on an Unreal Engine 5 project where I need to parse binary files. These files contain text encoded in Shift-JIS, as opposed to UTF-8 encoding. My goal is to convert a byte array from this binary file into an FString, but specifically interpreted using Shift-JIS encoding.

I've been searching around the web for a potential solution, but haven't seemed to find anything that addresses this specific issue. Ideally, I am looking for a function or method in Unreal C++ that can decode the byte array using Shift-JIS encoding, and convert it to an FString.Does Unreal have built-in support for this kind of conversion? Or if not, are there any third-party libraries or custom solutions I could use otherwise to achieve this functionality?

If it helps anything, I am very flexible on how the function could work, so long as I have a correct FString representation of the string in the end, too. I have no specific requirements other than achieving the conversion.


Viewing all articles
Browse latest Browse all 1154

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>