[英]Can't display character "€" of text on Google Maps (Xamarin Forms)
在Android和iOS的谷歌地图上,我无法在地图文本上显示字符“€”。
这是我的代码,我使用Pin.cs
的Xamarin.Forms.GoogleMaps
类:
private Pin ConvertToPropertyMapPinModel(Bucket<int> target, CultureInfo info) { var address = new List<string>(); address.Add($"Price: €110,551"); var pin = new Pin { Label = property.PropertyReference, Address = string.Join(Environment.NewLine, address), Position = new Position(property.GoogleX, property.GoogleY), Icon = stream != null ? BitmapDescriptorFactory.FromStream(stream) : null, }; SetPropertyProperty(pin, property); return pin; }
请支持我! 谢谢!
因为“ €
”是一个特殊字符。
如果要将其添加到字符串中,则应使用 Unicode。
字符“ €
”的 Unicode 是U+20AC
Ps :你也可以给字符串添加表情符号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.