[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] unicode with strcat



for my hold reason, I would like to have stop sign emoji -- U+1F6D1. How can I do that?

On Thu, Oct 12, 2023 at 10:22âAM Jaime Frey via HTCondor-users <htcondor-users@xxxxxxxxxxx> wrote:
> On Oct 11, 2023, at 4:06 PM, Rita <rmorgan466@xxxxxxxxx> wrote:
>
> I would like to put UTF-8 encoding in my strcat command for better messages. Is that possible with HTcondor?


Iâm unsure if youâre talking about the strcat command-line tool or the strcat() ClassAd function, so Iâll address both.

The jobâs stdout and data files can contain any data format you want.

The ClassAd language naively tolerates UTF-8 encoding in string values. It has no understanding of unicode code points or multi-byte characters. It will preserve the values, but treat each byte as an independent character. Thus, the strcat() and strcmp() functions will do byte-by-byte copying and comparison of string values with UTF-8 encoding. But the substr() function will count bytes and happily bisect a multi-byte character.

Â- Jaime

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/


--
--- Get your facts first, then you can distort them as you please.--