narirou / jconv Goto Github PK
View Code? Open in Web Editor NEWPure-JavaScript converter for Japanese character encodings.
Pure-JavaScript converter for Japanese character encodings.
ISO-2022-JP からの変換をしようとしているのですが、jconvがどうも ESC ( J
つまり 01/11 02/08 04/10
つまり 0x1b 0x28 0x4a
のエスケープシーケンスを全く認識していないように思われ、文字化けが生じています。
文字コードは専門ではないので間違っていたら申し訳ないのですが、ここの表3やここやここにはこのシーケンスが定義されており、まあざっくり ESC ( B
の「ASCIIに戻る」と同じように扱っても大きな問題はないような気がしています。
該当行は https://github.com/narirou/jconv/blob/master/jconv.js#L1067 など辺りになります。よろしくお願いします。
I took the liberty to contribute definitions to DefinitelyTyped and, proud as I am to have done so, perhaps it is a good idea to integrate definitions in this package in a future update. If you do, feel free to take my contributed definitions as a starting point or blatantly copypaste them. You have my permission 😀
You can also decide to leave everything as-is, and require typescript users to also install @types/jconv
as a devDependency for the time being. Up to you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.