Search packages, repositories and app categories

GitHub repositoryshirne/charset-dart

charset-dart

A multi encoding package

charset-dart project cover
Stars
19
Forks
3
Last push (UTC)
Jun 4, 2025
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

charset

pub package

cp series,win series,iso series,gbk,euc-kr,euc-jp,shift-jis,cp437,utf-16 and utf-32 Encoding and Decoding Library for Dart Language

Arrange from
utf
fast_gbk
euc convert

Examples

import 'package:charset/charset.dart';

main() {
  // default
  print(utf16.decode([254, 255, 78, 10, 85, 132, 130, 229, 108, 52]));

  print(utf16.encode("上善若水"));

  // detect
  print(hasUtf16Bom([0xFE, 0xFF, 0x6C, 0x34]));

  // advance
  Utf16Encoder encoder = utf16.encoder as Utf16Encoder;
  print(encoder.encodeUtf16Be("上善若水", false));
  print(encoder.encodeUtf16Le("上善若水", true));
}

Notice

In 0.x versions CodePage series Does not containts control characters (0x00-0x31). 0.x 版本中CodePage不含控制字符 (0x00-0x31)

shirne GitHub avatar
GitHub author

shirne ↗

Flutter/PHP/Java/.NET/Vue

语辰软件中国广东惠州Official website ↗
LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 2 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗