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

配置格式为properties时,换行符\n读取后变成\\n #3748

Closed
maohc opened this issue May 25, 2024 · 2 comments
Closed

配置格式为properties时,换行符\n读取后变成\\n #3748

maohc opened this issue May 25, 2024 · 2 comments
Labels
area/nacos spring cloud alibaba nacos kind/question

Comments

@maohc
Copy link

maohc commented May 25, 2024

com.alibaba.cloud spring-cloud-starter-alibaba-nacos-config 2.2.3.RELEASE

NacosDataPropertiesParser方法doParse处理data数据,拿到value后,此时换行符“\n”变成了"\\n",未做处理。是否应该将"\\n"替换成“\n”

@yuluo-yx
Copy link
Collaborator

试下最新版本有没有这个问题

@yuluo-yx yuluo-yx added kind/question area/nacos spring cloud alibaba nacos labels May 27, 2024
@maohc
Copy link
Author

maohc commented May 27, 2024

升级到2.2.4.RELEASE版本解析properteis文件有中文乱码问题,升级到2.2.5.RELEASE好了。看了源码,2.2.4及之后版本调整了解析机制。

@maohc maohc closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/nacos spring cloud alibaba nacos kind/question
Projects
None yet
Development

No branches or pull requests

2 participants