Modern asset map not showing assets with special characters in name


(bm@iucr.org) #1

I very much like the "modern" (JavaScript) asset map, but have run into a problem with displaying assets that have non-ASCII characters in their names - see screenshots. The first, using the JavaScript asset map, truncates when it first encounters an asset name that has a special character in its name, whereas the Java map shows all the assets (although it doesn't render the characters correctly). The character encoding is UTF-8. I guess this is a bug - I'll check to see if it's already been reported. Meanwhile, is there an easy workaround?

 

Thanks

Brian matrix1.png (9.45 KB) matrix2.png (14.4 KB)


(Luke Wright) #2

Hi Brian,

 

I haven't seen this before, unfortunately, and at the moment I can't replicate on a fully UTF-8 system. Can you please open an issue in our bug tracker (http://bugs.matrix.squiz.net/)? Thanks.

 

Just to clarify a couple of things:

- Am I correct that the backend encoding of your Matrix system is UTF-8, or are these UTF-8 characters copied into a system with a different backend encoding?

- Are the titles of these events manually typed in or were they copied in from Word or another app?

- Is the extension "mbstring" part of your PHP installation on your server? (If you installed PHP from a package, you may need to install a separate package for this, usually called "php-mbstring".)

 

Just trying to eliminate some possibilities here. It seems slightly odd that Java would have problems with UTF-8 characters.

 

Thanks in advance.

 

Cheers,

Luke


(bm@iucr.org) #3

Hi Brian,

 

I haven't seen this before, unfortunately, and at the moment I can't replicate on a fully UTF-8 system. Can you please open an issue in our bug tracker (http://bugs.matrix.squiz.net/)? Thanks.

 

Just to clarify a couple of things:

- Am I correct that the backend encoding of your Matrix system is UTF-8, or are these UTF-8 characters copied into a system with a different backend encoding?

- Are the titles of these events manually typed in or were they copied in from Word or another app?

- Is the extension "mbstring" part of your PHP installation on your server? (If you installed PHP from a package, you may need to install a separate package for this, usually called "php-mbstring".)

 

Just trying to eliminate some possibilities here. It seems slightly odd that Java would have problems with UTF-8 characters.

 

Thanks in advance.

 

Cheers,

Luke

 

Hi Luke

 

php-mbstring was indeed the culprit - installing it renders the names in the Java asset map correctly; and when switching to the JavaScript asset map the list of children is not truncated and does render properly.

 

Many thanks

Brian

 

[Just to tidy up the loose ends - yes, the Matrix backend encoding was UTF-8; the original names were input by external contributors, probably by cut-and-paste from Word etc. php-mbstring was lacking from both my production and backup machines (we seem to be using RedHat/CentOS default packages in both cases.]