cp949_codec 1.0.2 copy "cp949_codec: ^1.0.2" to clipboard
cp949_codec: ^1.0.2 copied to clipboard

The best package for cp949 decoding/encoding. support null-safety, less memory comsumption. include examples and tests

example/main.dart

import 'package:cp949_codec/cp949_codec.dart';

void main() {
  /// cp949.decode();
  List<int> beautiful = [0xBE, 0xC6, 0xB8, 0xA7, 0xB4, 0xD9, 0xBF, 0xEE];

  print(cp949.decode(beautiful)); // 아름다운

  /// cp949.encode();
  final helloworld = "세계야, 안녕";
  print(cp949.encode(
      helloworld)); // [188, 188, 176, 232, 190, 223, 44, 32, 190, 200, 179, 231]

  /// cp949.decodeString
  final brokenString = "ÇÁ·Î±×·¡¹Ö¾ð¾î·Ð";
  final decodedString = cp949.decodeString(brokenString);
  print(decodedString); // 프로그래밍 언어론

  /// cp949.encodeToString
  final encodedString = cp949.encodeToString('컨텐츠');
  print(encodedString); // ÄÁÅÙÃ÷
}
15
likes
155
points
327
downloads
screenshot

Publisher

verified publisherletyarch.blogspot.com

Weekly Downloads

The best package for cp949 decoding/encoding. support null-safety, less memory comsumption. include examples and tests

Repository (GitHub)
View/report issues

Topics

#encoding #decoding #korean #cp949 #euc-kr

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on cp949_codec