4 ms·
How do you safely convert a 2 byte character to a 1 byte character?
by beart 7mo ago
How do you safely convert a 2 byte character to a 1 byte character?
- jiggawatts 7mo agoEasily! If it doesn't convert successfully because it includes characters outside of the range of the target codepage then the equality condition is necessarily false, and the engine should short-circuit and return an empty set.