Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Adam B.
7 years agoExplorer | Level 3
Problem with special charachters in Company name
I'm working on an internal production tool for our company. And for that I need to compare some local files inside the Dropbox folder with the files synced to Dropbox (to at least try to prevent som ...
- 7 years ago
It sounds like the different strings you're trying to use have different normalization forms, and so they aren't equivalent. You should probably normalize them before comparing them, such as covered here for Node.js. Hope this helps!
Greg-DB
Dropbox Community Moderator
7 years agoIt sounds like the different strings you're trying to use have different normalization forms, and so they aren't equivalent. You should probably normalize them before comparing them, such as covered here for Node.js. Hope this helps!
Adam B.
7 years agoExplorer | Level 3
Hi, yeah thanks for your answer! Five minutes before leaving work yesterday I stumbled upon the String.prototype.normalize()-function and it very easily solved my problems!
For future reference and to anyone that might stumble upon this:
As I've understood it, while searching through sources, there are two ways to represent charachters such as å, ä, ö and similar in a unicode string. Either as one special charachter (e.g. 'ö' === '\u00f6' in JS) or as a base charachter together with a combining diaeresis (e.g. 'ö' === 'o\u0308' in JS).
In javascript one can use String.prototype.normalize() to compare two strings even if the strings use different solutions to store charachters.
Please correct me if I'm wrong.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!