1015

(skeletor is leading by example by adding that unnecessary apostrophe...)

you are viewing a single comment's thread
view the rest of the comments
[-] Potatos_are_not_friends@lemmy.world 52 points 1 year ago* (last edited 1 year ago)

One of my projects was validation for form submission and emojis melted me. I gave up trying to do it from scratch and trusted a library.

[-] agressivelyPassive@feddit.de 42 points 1 year ago

I'm currently in a project where the client has a custom, but not entirely consistent or known subset of utf-8.

They want us to keep the form content as it is, but remove the "bad" characters. Our current approach is to just forward everything as it is and wait for someone to complain. How TF am I supposed to remove a character without changing the message?

[-] dan@upvote.au 5 points 1 year ago* (last edited 1 year ago)

You just need to ensure you validate character by character (NOT byte by byte) and allow characters in the Emoji Unicode ranges (which are well-defined in the Unicode standard). Using a library is a great idea though.

[-] GTG3000@programming.dev 4 points 1 year ago

Why not simply discard them?

this post was submitted on 28 Feb 2024
1015 points (100.0% liked)

Memes

11629 readers
1258 users here now

Post memes here.

A meme is an idea, behavior, or style that spreads by means of imitation from person to person within a culture and often carries symbolic meaning representing a particular phenomenon or theme.

An Internet meme or meme, is a cultural item that is spread via the Internet, often through social media platforms. The name is by the concept of memes proposed by Richard Dawkins in 1972. Internet memes can take various forms, such as images, videos, GIFs, and various other viral sensations.


Laittakaa meemejä tänne.

founded 3 years ago
MODERATORS