Cant recording on windows, I used the path_provider package to get the cache directory of the application.The path contains a username which is a CJK character like C:\Users\住京华\AppData\Local\cn.yooss\mood_diary\audio-0192ce6d-ad7c-7386-9ac5-69adf5557f64.m4a. Then recording threw this exception after calling the start method.
However, when using a latin only path, it works well.
Package version record: 5.1.2
Environment
Describe the bug
Cant recording on windows, I used the
path_provider
package to get the cache directory of the application.The path contains a username which is a CJK character likeC:\Users\住京华\AppData\Local\cn.yooss\mood_diary\audio-0192ce6d-ad7c-7386-9ac5-69adf5557f64.m4a
. Then recording threw this exception after calling the start method.However, when using a latin only path, it works well.
My Code This is my code
The
getCachePath()
method is just used thegetApplicationCacheDirectory()
method inpath_provider
package.It work well on Android devices, but not windows.