inok/detect-cyr-encoding
最新稳定版本:1.0.0
Composer 安装命令:
composer require inok/detect-cyr-encoding
包简介
Detect Text Cyrillic Encoding
关键字:
README 文档
README
This package for detecting cyrillic encoding of source text (Supports encodings: 'UTF-8', 'cp866', 'cp1251')
Installation
You can install this package by using Composer, running this command:
composer require inok/detect-cyr-encoding
Link to Packagist: https://packagist.org/packages/inok/detect-cyr-encoding
Usage
$detector = new \Inok\detectCyrEncoding\Detector(); $encoding = $detector->detect($text);
where:
- $text - Text for detect encoding
return:
- $encoding - string with one of detected encodings: UTF-8, cp866, cp1251
License
This package is released under the MIT license.
Copyright (c) 2023 Chizhov Nikolay
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-15