Skip to content

WyvernCoder/UnicodeHandler_Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SELECT LANGUAGE: English, 简体中文
GO TO DOWNLOAD PAGE

HOW TO USE

There are only two blueprint nodes "UnicodeToCharacter" and "CharacterToUnicode".
They have the same parameters, a DataTable of Stru_CharacterTable structure and a String.
They all have a String ReturnValue.

All you have to do is input a string of Unicode or a string of special characters into the correct node, and it will return the corresponding data in the DataTable that you select. If there is a problem with your input value, it will report the error in the log and return string "NULL".
The plug-in contains a complete ChineseCharacter data table.

I wander the Structure of Stru_CharacterTable, I think it helps me understand this plugin

Stru_CharacterTable is a C++ Structure which consists of two variables of String, "Unicode" and "Character".
WarnYou CANNOT break C++ structure in BPWarn

I need an example of DataTable

There is a ChineseCharacter DataTable in the Content folder of the plug-in, You can use it directly or download the source file from here: Chinese Character Table UTF-8 Chinese Character Table ANSI.
Microsoft Excel 365 seems unable to read the CSV file with UTF-8 format. You can use Notepad++ or use ANSI version file to open it normally.
WarnYou need to convert your CSV file to UTF-8 format to use in UE Editor, otherwise it will be garbled.Warn

How to make a suitable DataTable

.

1.We need a character comparison table in TXT format.

This table should look like this. It has Unicode codes and corresponding characters.

2.In general, a Unicode table have many languages.

We only need to intercept the parts we need. As shown in the figure, the basic Chinese Character range is \u4E00~\u9FA5.
WarnThe data in the picture is the range of Chinese Character, You may need to find your own language rangeWarn

3.Use MS Excel or other software to process the character comparison table into the following figure.

4.Export to CSV format.

The software in the picture is Microsoft Excel.

5.Use Notepad++ or Windows Notepad to convert it from ANSI format to UTF-8 format.

it will be garbled in the editor if you dont do this

6.Import it into UE Editor and select Stru_CharacterTable structure.

7.Then you can use your new table.

KNOWN PROBLEMS SUPPORT

.
Q: When using C++, it cannot be compiled and report "error C2001: newline in constant".
A: Switch the encoding of your CPP or H file to UTF-8 format.
SwitchEncode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published