Skip to content
pubscout

cp949_codec

1.0.2, released 3 years ago by letyarch.blogspot.com

CP949 and EUC-KR text encoder and decoder for Dart.

WASM-ready
$ flutter pub add cp949_codec
Source repository

What it does

Provides encoding and decoding for the CP949 and EUC-KR character sets following the Dart standard Encoding protocol. It includes methods for decoding byte lists, encoding strings, and fixing incorrectly decoded strings.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to decode or encode CP949 or EUC-KR data in Dart or Flutter.
  • You want to handle legacy Korean text encodings with lower memory consumption.

Skip it when

  • You are running on a host endian other than Little Endian (host endian must be Little Endian for memory optimization to work properly).
  • You only need standard UTF-8 or Latin-1 encodings already supported by dart:convert.

Strengths

  • Follows the standard Dart `Encoding` protocol from `dart:convert`.
  • Reduces memory consumption using `BytesBuilder`.
  • Supports null safety and includes tests and examples.

Weaknesses

  • Requires Little Endian architecture for its memory consumption optimization to work properly.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

none

import 'package:cp949_codec/cp949_codec.dart';

List<int> beautiful = [0xBE, 0xC6, 0xB8, 0xA7, 0xB4, 0xD9, 0xBF, 0xEE];
print(cp949.decode(beautiful)); // 아름다운

Alternatives

Packages that do the same job and could replace cp949_codec.