PHI-base / PHI5_web_display

PHI5_web_display will allow to display PHI-Canto data
1 stars 0 forks source link

PHI-base 5 UI can't display non-ASCII characters #107

Closed jseager7 closed 9 months ago

jseager7 commented 11 months ago

I've noticed that the PHI-base 5 UI can't seem to display non-ASCII characters in the Background column. The characters are replaced with a question mark symbol. This might happen everywhere where non-ASCII characters are used (e.g strain names), but I can't find any other examples.

The example below is from PHIG:301.

image

In the JSON export, the delta symbol is escaped as follows:

"background": "\u0394Ku80 pyrG+",

Which decodes to:

"background": "ΔKu80 pyrG+",

The quickest solution is for me to replace these non-ASCII characters with an ASCII equivalent (e.g. 'delta' for Δ) before loading the JSON export, but this might not work for all cases. I'll have to check which non-ASCII characters are used in the latest JSON export.

jseager7 commented 9 months ago

This seems to be fixed for PHIG:301 so I'm assuming that Unicode characters can be displayed correctly in all fields.

image