It is hard to judge from what you've given me. Here are a couple of guesses/suggestions:
- You may need to encode in utf-8 the key as well as the val.
- If it is picky about the order of the keys, you should log the keys as you put them into newparams. Since you are using a dict for f, the order may not be what you are expecting it to be.
Justin Peel
2010-02-22 20:45:07