Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Convert encoding for open.mp (tis620 to utf8 and reverse)

License

Notifications You must be signed in to change notification settings

exsycore/convert-encoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Convert Encoding

GitHub Release Download

ปลั๊กอิน Convert Encoding ช่วยแปลงให้ข้อความของคุณเป็น Encoding อื่นๆเช่น UTF-8 ได้หรือสามารถแปลงกลับไปเป็น TIS-620 ได้เลย

การติดตั้ง (open.mp)

  • นําไฟล์ c2u.dll ใส่ในโฟลเดอร์ components ของคุณ (ไม่ต้องเพิ่มอะไร config.json สามารถใช้งานได้เลย)
│ GameMode/
├── components/
│ └── c2u.dll
  • นําไฟล์ ConvertEncoding.inc ใส่ในโฟลเดอร์ Includes ของคุณ
│ qawno/
├── include/
│ └── ConvertEncoding.inc
  • การติดตั้ง
#include <open.mp>
#include <ConvertEncoding>

วิธีการใช้งาน (นี่คือตัวอย่างเท่านั้น)

#include <open.mp>
#include <ConvertEncoding>
public OnPlayerConnect(playerid) {
 new string[100] = "สวัสดีนะจ๊ะจ๊ะจ๊ะ";
 new output[100], output2[100];
 ConvertEncoding(string, TIS620, UTF8, output); // อันนี้ TIS-620 ไปเป็น UTF-8
 ConvertEncoding(output, UTF8, TIS620, output2); // อันนี้ UTF-8 ไปเป็น TIS-620
 SendClientMessage(playerid, COLOR_RED, output);
 SendClientMessage(playerid, COLOR_RED, output2);
 return 1;
}

การบิ้ว

Sources

git clone --recursive https://github.com/exsycore/convert-encoding.git

Building on Windows

cmake -B build -A Win32 -T ClangCL
cmake --build build

About

Convert encoding for open.mp (tis620 to utf8 and reverse)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /