Now I'm using SkiaSharp on Xamarin Android.
I wanna draw Japanese text with SKCanvas.DrawText ,but japanese characters were garbled.
I saw this similar question,so I tried to convert text to UTF-8, but result is same.
I tried like below.
var s = "abcあいう123壱弐参";
var buf = System.Text.Encoding.UTF8.GetBytes(s);
var utf8s = Encoding.UTF8.GetString(buf);
skcanvas.DrawText(utf8s, 50, 50, paint);
another one.
var s = "abcあいう123壱弐参";
var dest = Encoding.UTF8;
var src = Encoding.Default;
var buf = src.GetBytes(s);
var buf2 = Encoding.Convert(src,dest, buf);
var utf8s = dest.GetString(buf2);
skcanvas.DrawText(utf8s, 50, 50, paint);
Both result are same. "abc" and "123" is drawn well,but Japanese character are garbled.
Any idea?