Page 1 of 1

Initials & Unicode?

PostPosted: Wed Sep 23, 2020 8:38 pm
by Trotterdam
I saw on an effect line on Moderal, whose @@TYPE@@ is set as "Stórveldi" (whatever that means), that its @@TYPEINITIALS@@ was computed as "SR". Obviously the server failed to recognize that non-ASCII character "ó" is, in fact, a letter rather than whitespace.

If you don't want to go through the effort of using a proper Unicode-aware library to identify character types, it makes more sense to at least assume that all non-ASCII characters are letters, rather than that none of them are.

PostPosted: Wed Sep 23, 2020 10:58 pm
by [violet]
Well there's 45 minutes I'll never get back. But this should work better now.

PostPosted: Thu Sep 24, 2020 11:29 am
by Leppikania
That nation also has some broken character encoding in the description.

PostPosted: Fri Sep 25, 2020 3:24 am
by Minoa
Source: https://www.nationstates.net/nation=west_calypso

Example of the description text going haywire with foreign characters (I know it worked before): I expected the leader of my issues subsidiary to be Nicolás Maduro, not Nicolás Maduro.

PostPosted: Sun Sep 27, 2020 12:07 am
by [violet]
Minoa wrote:Source: https://www.nationstates.net/nation=west_calypso

Example of the description text going haywire with foreign characters (I know it worked before): I expected the leader of my issues subsidiary to be Nicolás Maduro, not Nicolás Maduro.

Where are you seeing the problem? The nation description looks fine to me.

PostPosted: Sun Sep 27, 2020 12:39 am
by Minoa
[violet] wrote:
Minoa wrote:Source: https://www.nationstates.net/nation=west_calypso

Example of the description text going haywire with foreign characters (I know it worked before): I expected the leader of my issues subsidiary to be Nicolás Maduro, not Nicolás Maduro.

Where are you seeing the problem? The nation description looks fine to me.

It looks like it got fixed before you saw my message.

PostPosted: Sun Sep 27, 2020 12:57 am
by Trotterdam
Moderal is still glitched.

The big banner next to the flag reads "The Stórveldi of Moderal", correctly. However, the text reads "The Stórveldi of Moderal is a massive, orderly nation...", "hard-nosed, cynical, humorless, devout population of 4.087 billion Flammæ", and "The all-consuming Flammæ economy". Retrieving the custom fields via the API does give the correct values. (Though while I'm at it, this (escaping a character in C/JSON/etc. style rather than XML style) has never been fixed.)

West Calypso meanwhile lists "ruled by Nicolás Maduro" correctly in the text, but still has the broken code in some old effect lines in the log.

Dunno why some nations work and others don't, maybe it's just stale data and resubmitting the fields will be enough to fix it.