繁体   English   中英

无法在 Google 地图(Xamarin 表单)上显示文本的字符“€”

[英]Can't display character "€" of text on Google Maps (Xamarin Forms)

在Android和iOS的谷歌地图上,我无法在地图文本上显示字符“€”。

Image_Bug

  • 这是我的代码,我使用Pin.csXamarin.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 字符表

字符“ ”的 Unicode 是U+20AC

Ps :你也可以给字符串添加表情符号

完整的表情符号列表

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM