-
Notifications
You must be signed in to change notification settings - Fork 1
BlitzEncode
子悦解说 edited this page Sep 16, 2024
·
4 revisions
BlitzEncode is a library for converting encoding.
Blitz3D TSS is UTF-8 support, but this also made "mojibake" when interacting with the Windows system.
This library can convert encoding, making the engine can interact with the system.
Note: For Blitz3D TSS (ZiYueCommentary), this library can remove. For interacting with the system, texts only need to convert between UTF-8 and ANSI. Blitz3D TSS (ZiYueCommentary) already had ConvertToUTF8 and ConvertToANSI function.
BlitzEncode.bb contains almost ALL code pages, ConvertANSItoUTF8 and ConvertUTF8toANSI are defined in the header file too.
| Function | Description |
|---|---|
| ConvertEncoding$(txt$, sourceCodePage%, destCodePage%) | Convert a string to a specified encoding. sourceCodePage% is current text's encoding, destCodePage% is that string will be convert to. |
| GetCodePage%() | Get the current code page (ACP). |
| ConvertANSItoUTF8$(txt$) | Convert an ANSI string to UTF-8 string. |
| ConvertUTF8toANSI$(txt$) | Convert a UTF-8 string to ANSI string. |
High Priority: Alamchu • RapidBson
Middle Priority: IniController
Low Priority: NetworkConnector • OpenCC • BlitzFormat • Blib • BlitzEncode