I need to encode some text files for native characters.
In my Windows 8.1 Store app, I could use Encoding.GetEncoding()
method normally:
Encoding.GetEncoding("windows-1254")
But in UWP app, I got this exception:
Additional information: 'windows-1254' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
I don't know how to make it work by using Encoding.RegisterProvider
method, any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…