3 ms·
If whatever framework or libraries you're using don't hide this from you nearly completely, you might be doing it wrong. Just use the default Unicode format of
by kogir 15y ago
If whatever framework or libraries you're using don't hide this from you nearly completely, you might be doing it wrong. Just use the default Unicode format of the OS and framework or standard libraries you're using and never think of it again.
Much like dates and times, correct handling of Unicode is best left to the poor souls stuck dealing with them full time, all the time.
- nyellin 15y agoThat is not an option for low-level programming.
- maaku 15y ago"correct handling of Unicode is best left to the poor souls stuck dealing with them full time, all the time"
- hrktb 15y ago> Much like dates and times, correct handling of Unicode is best left to the poor souls stuck dealing with them full time, all the time. Reminds me that date parsing is fucked up in iOs and you actually need to know your shit to get it right when dealing with users around the globe. But I don't see people dealing with this full time.
- chubs 15y agoIn all apps i've worked on, passing dates around as 'seconds since 1970' has made date parsing on ios effortless - you may want to try that.
- klodolph 15y agoGive me a call in 2038.
- pyre 15y ago> passing dates around as 'seconds since 1970' has > made date parsing on ios effortless I'm confused. How does the way that you store dates internally have anything to do with date parsing? If you are accepting dates from users, then you still have to normalize then to unix timestamps. That also doesn't cover things like: * Take this date and convert it into a week represented by the last Sunday of the week (i.e. 20110410 represents 20110403-20110409). * Basically anything involving days of the week.
- runn1ng 15y agoTheoretically, maybe. But, as with everything, things have the tendency to screw up and you should know why they did. (or somebody better paid should)
- pyre 15y agoWhat happens when the library has issues or doesn't follow the unicode spec? What about the fact that Unicode Is Hard(tm) and you will end up shooting yourself in the foot if you think that you can bury your head in the sand about it? Not many regex implementations allow you to reference unicode chars by name or type rather than directly by hex code.