mildly OT from bidi - curious email

Arthur Reutenauer via Unicode unicode at unicode.org
Wed Feb 6 08:53:49 CST 2019


On Wed, Feb 06, 2019 at 02:30:24PM +0000, Julian Bradfield via Unicode wrote:
>             So far, so common. The curious thing is that the (entirely
> ASCII) company name was enclosed in a left-to-right direction, thus:
> 
> Subject: Your <LRE>Aaaaaaa Ltd<POP> receipt [#nnnn-nnnn]
> 
> where <LRE> and <POP> are the bidi control characters.
> 
> I don't think I've seen this before - I wonder why it happened?

  Maybe Stripe stores merchant names with surrounding bidi control
characters, so that they’re always rendered in the appropriate
direction, even by systems that don’t implement the bidi algorithm?
Since the subject is clearly generated automatically from at least three
different sources, I can imagine wanting this sort of weak guarantee
that merchant names are always marked with the correct writing
direction, even if they’re embedded in a different-language string.  The
directional characters would only need to be added once.

	Best,

		Arthur


More information about the Unicode mailing list