xddxdd / bird-lg-go

BIRD looking glass in Go, for better maintainability, easier deployment & smaller memory footprint
GNU General Public License v3.0
141 stars 27 forks source link

unable to display some symbols and characters in bgpmap #105

Closed SerinaNya closed 5 months ago

SerinaNya commented 5 months ago

Here's some thing wrong in bgpmap.

The origin text in whois response is xxx & Internal 中文.

![image](https://github.com/xddxdd/bird-lg-go/assets/34389622/46d10a4f-e741-4bfa-a9e7-9f4355fe2fe1)

image

Here's the SVG element, I take this screenshot from Chrome Devtool.

image

Can bird-lg-go support these characters in bgpmap?

xddxdd commented 5 months ago

Can you try the latest commit? I fixed an issue with browsers not properly decoding UTF-8 Base64 strings.

SerinaNya commented 5 months ago

Can you try the latest commit? I fixed an issue with browsers not properly decoding UTF-8 Base64 strings.

I have tried https://github.com/xddxdd/bird-lg-go/commit/f0f072c4a698236af3e76ec34436175e208ff3d1 .

中文 works now, & still doesn't work.

image

xddxdd commented 5 months ago

Just pushed another update, can you try again? Symbols like <, >, & should be fixed now.

SerinaNya commented 5 months ago

Just pushed another update, can you try again? Symbols like <, >, & should be fixed now.

https://github.com/xddxdd/bird-lg-go/commit/0dd1c07b661cca51482eae3b219699e443473b2f works.

xddxdd commented 5 months ago

Thanks for confirming, I will create a new release shortly.