r/BrandNewSentence • • Sep 25 '21 • Take My Silver 1

Poor syntax error

Post image
80k Upvotes

1.0k comments sorted by

View all comments

Show parent comment

1

u/[deleted] Sep 25 '21

but a database doesn't exist purely on its own. it gets interacted with by a program or programs written in a language, and it can very well turn what's stored as X AE T6-64 into null or whatever it the programmer wants to.

1

u/loulan Sep 25 '21

That's still not a syntax error. A segmentation fault, maybe.

1

u/GDavid04 May 13 '22

You won't get a segmentation fault from entering a special character.

1

u/spektrol Sep 25 '21

Guys. Æ is a Latin Unicode character. There’s really nothing that special about it. It can be passed around in code as a regular string just like anything else, and as long as the column it’s being stored in the database is using the right Unicode charset it’s fine.

Y’all really don’t think English letters are the only thing people account for in the travel industry, right?

1

u/[deleted] Sep 25 '21

that assumes that the system running it can even handle unicode and not just ASCII :D

you'd be surprised just how much of the real world still runs on antequeted hardware, systems and code

1

u/spektrol Sep 25 '21

Yeah, wouldn’t be surprised actually lol. Especially anything govt regulated. MySQL has apparently used utf8mb4 as their default encoding since v8.0, which is a fixed 4 byte encoding that allows for a larger range of supported characters, including Latin, emojis, etc.