Let's say I have the word "Russian" written in Cyrillic. This is would be the quivalent of the following in Hex:

```
&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;

```

My question is: how do I write a function which will go from "Russian" in Cyrillic to it's hex value as above? Could this same function work also for singel byte characters?