Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么拼音里有a的会有问题呢? #138

Closed
xcapis opened this issue May 15, 2019 · 3 comments
Closed

为什么拼音里有a的会有问题呢? #138

xcapis opened this issue May 15, 2019 · 3 comments
Labels

Comments

@xcapis
Copy link

xcapis commented May 15, 2019

PHP7.3.1
nginx
使用composer require "overtrue/pinyin:~4.0"进行安装
代码如下
`
require(dirname(FILE) . '/vendor/autoload.php');

use Overtrue\Pinyin\Pinyin;

$pinyin = new Pinyin();

$a = $pinyin->convert('带着希望去旅行,比到达终点更美好');

print_r($a);
`
输出以下内容

Array
(
[0] => d�
[1] => i
[2] => zhe
[3] => xi
[4] => w�
[5] => ng
[6] => qu
[7] => lyu
[8] => xing
[9] => bi
[10] => d�
[11] => o
[12] => da
[13] => zhong
[14] => dian
[15] => geng
[16] => mei
[17] => hao
)

经测试,不管是abbr还是convert。前面几个有问题的都有问题

@xcapis xcapis changed the title 为什么拼音里有a的都有问题呢? 为什么拼音里有a的会有问题呢? May 15, 2019
@AlexStack
Copy link

AlexStack commented Aug 20, 2019

Same issue,
澳佳宝 儿童益生菌 30袋
�-o-jia-bao-er-tong-yi-sheng-jun-30-d�-i

@weimasi
Copy link

weimasi commented Feb 24, 2022

我刚也遇到了这个问题,所有带有a的拼音都转不了,退回到3.0版本没问题!

@overtrue overtrue added the bug label Apr 25, 2022
@overtrue
Copy link
Owner

已修复 #119

overtrue added a commit that referenced this issue Apr 27, 2023
overtrue added a commit that referenced this issue Apr 27, 2023
overtrue added a commit that referenced this issue Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants