Skip to content

AoiSaya/FlashAir_UTF8toSJIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the Lua library using the UTF8_to_Shift_JIS conversion table for the FlashAir.

これはFlashAir用のLua ライブラリです。
Version 0.01

UTF8 to Shift_JIS 変換テーブルファイル "Utf8Sjis.tbl" を予めFlashAirにコピーしておく必要があります。
UTF-8コードのString文字列をShift_JIS文字列コードに変換できます。
変換テーブルファイルURL--> https://github.com/mgo-tec/UTF8_to_Shift_JIS

JIS第一水準、第二水準、13区、半角カナが変換可能です。

【更新履歴】
(0.01)
mgo-tecさんの"SD_UTF8toSJIS"を FlashAir に移植しました。

Original https://github.com/mgo-tec/SD_UTF8toSJIS
参照ブログ https://www.mgo-tec.com

Usage

See sample code: "sample.lua"

Description of the command

command description
strSJIS, sj_length =
UTF8toSJIS:UTF8_to_SJIS_str_cnv(f2, strUTF8)
f2: table file handle
strUTF8: UTF-8 string

strSJIS: Shift-JIS string
If f2 is nil then return nil
sj_length: Shift-JIS string length

Licence

MIT

Author

GitHub/AoiSaya
Twitter ID @La_zlo

About

FlashAir library to convert from UTF-8 to Shift _ JIS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages