Mobbeel / fataar-gradle-plugin

Gradle plugin to help embed dependencies in generated AAR artifact
https://plugins.gradle.org/plugin/com.mobbeel.plugin
Apache License 2.0
342 stars 44 forks source link

Unrecognized non-utf-8 encoding #11

Closed GavinQin closed 5 years ago

GavinQin commented 5 years ago

when the string.xml contains chinese characters, in the aar ,it's show "????"

oscarcpozas commented 5 years ago

I assign myself to review this issue

aveth commented 5 years ago

Is there any update on this issue? I'm currently experiencing something that might be related. When building my app, I am seeing an error:

`79 actionable tasks: 79 executed

FAILURE: Build failed with an exception.

BUILD FAILED in 18s `

Any updated would be very helpful. I'm trying to build an AAR from a Flutter module and using the following instructions: https://github.com/flutter/flutter/issues/23944

Thanks!

oscarcpozas commented 5 years ago

I tried to reproduce with the latest version of plugin (2.0.3) and Gradle plugin 3.1.4, and the characters are generated correctly: screenshot 2019-01-10 at 13 23 55

BigggFish commented 5 years ago

in the aar, values.xml is in GBK format. When you open values.xml in UTF-8 format, it will show "???". but my project is in UTF-8 format.

BigggFish commented 5 years ago

I found the reason.Because my operating system is Windows 10.So when generating new values.xml, the default format is GBK. Modify the default format to UTF-8, which can be solved. ps:I'm not good at English.If you are not sure, please let me know.

oscarcpozas commented 5 years ago

So, this issue is solved?

BigggFish commented 5 years ago

yes! this issue is solved

msrlin commented 5 years ago

yes! this issue is solved

我这边修改了默认UTF编码,打包出来的aar文件还是出现了BGK的乱码....你是怎么完全解决这个问题的

msrlin commented 5 years ago

So, this issue is solved?

can you add a config to set encoding? sometime , we do not want to change our default pc setting. On the other hand,i changed my default encoding system, it still doesn't work, and there may be some unknown problems