I am writing a function that transliterates UNICODE digits into ASCII digits, and I am a bit stumped on what to do if the string contains digits from different sets of UNICODE digits. So for example, if I have the string "\x{2463}\x{24F6}" ("④⓶"). Should my function
- return 42?
- croak that the string contains mixed sets?
- carp that the string contains mixed sets and return 42?
- give the user an additional argument to specify one of the three above behaviours?
- do something else?