Right now I have Unicode and non-Unicode versions of some functions (to open files and such), should I bother keeping both or should I just use the Unicode version? Are there any benefits for keeping both?
Right now I have Unicode and non-Unicode versions of some functions (to open files and such), should I bother keeping both or should I just use the Unicode version? Are there any benefits for keeping both?
keep both
Kuphryn
It would be nice to have some reasons to keep both or not. It seems to me that it would only make sense to keep the Unicode versions that it would deal with all cases but I'm not sure how everything works in different platforms.
You've just answered your own question: the reason it is good to keep ASCII and unicode functions is because not all systems support unicode, and you will have to convert unicode strings to ASCII ones.
Also, many standard libraries have unicode versions of their utilities, but if you use a third party library (or just a really old lubrary) in your code, it might not support unicode and you would need to convert in that case also.