Write a Javascript function which converts ANSI characters 32-255 to Siemens Mobile GSM alphabet according to the Tables attached. For instance, A is converted to to a value of 0x41, _(underscore) is converted to a value of 0x11, and some are converted to 2 characters, for instance the curly brace { is converted to the two character values 0x1B 0x28. That means the input is a string coded in ANSI, the return value is a string coded in GSM alphabet. Another example: The input <Hello~> must be returned as a character sequence of 3C 48 65 6C 6C 6F 1B 3D 3E, or the € character will be returned as 1B 65. Characters from the ANSI table which do not exist in the GSM table will be set to a space. The function should be somewhat optimized regarding performance.
Please do only make an offer if you understand exactly what i want.
This is not a big project.