Question: I'm making a virtual machine in RPython using PyPy. My problem is, that I am converting each character into the numerical representation. For example, converting the letter "a" provides this result, 97. And then I convert the 97 to hex, so I get: 0x61.

So for example, I'm trying to convert the letter "á" into the hexadecimal representation which should be: 0xe1 but instead I get 0xc3 0xa1

Is there a specific encoding I need to use? Currently I'm using UTF-8.

--UPDATE--

Where instr is `"á"`, (including the quotes)

```
for char in instr:
    char = str(int(ord(char)))
    char = hex(int(char))
    char = char[2:]
    print char # Prints 22 C3 A1 22, 22 is each of the quotes
    # The desired output is 22 E1 22

```

Answer: 
Im not entirely familiar with jQuery UI accordions, but have you tried placing your $('.accordion').accordion(); inside jQuery document.ready ?

See the code below, most likely your accordion is being initialized before the actual html on the page exists. That's assuming you setup your html correctly,and you are including the proper jQuery JavaScript files etc.

```
$(document).ready(function() { 
 $('.accordion').accordion();
});

```

Hopefully that helps.
Sounds like you unchecked the JqueryUI Core, download the standard version of JqueryUI and overwrite the version created.

A [fiddle](http://jsfiddle.net/s5EV4/) shows that the code is correct. If you are missing the core then no widgets will work

```
$(function (){
    $('.accordion').accordion();
});

```