Skip to content

fix: NacosDataParserHandler yaml配置解析默认编码错误#4032

Open
ControlByDestiny wants to merge 1 commit intoalibaba:2023.xfrom
ControlByDestiny:2023.x
Open

fix: NacosDataParserHandler yaml配置解析默认编码错误#4032
ControlByDestiny wants to merge 1 commit intoalibaba:2023.xfrom
ControlByDestiny:2023.x

Conversation

@ControlByDestiny
Copy link

Describe what this PR does / why we need it

中文的操作系统默认编码是GBK,Yaml解析只支持Unicode编码,默认编码不一致导致使用了配置中心的服务无法正常启动

Does this pull request fix one issue?

NONE

Describe how you did it

针对yaml配置获取bytes时指定UTF-8编码

Describe how to verify it

配置中心新增yaml配置,本地获取配置内容,要求本地默认编码非Unicode,且启动时未通过-Dfile.encoding指定VM默认编码

Special notes for reviews

NONE

@CLAassistant
Copy link

CLAassistant commented Jul 29, 2025

CLA assistant check
All committers have signed the CLA.

@ControlByDestiny
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments