 <p>You can use <a href="https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/index.html#//apple_ref/occ/instp/NSString/hash" rel="nofollow"><code>NSString.hash</code></a>, or yes, other languages' characters are also represented by numbers: if you don't mind the size, you can contact them. <a href="http://en.wikipedia.org/wiki/Base64" rel="nofollow">Base64</a> also creates (hexadecimal) numbers from strings.</p>