This kind of looks like some sort of encoding/charset problem...
With Drupal, everything is encoded (and expected) in the UTF-8 charset.
Not sure it'll solve/fix your problem, but you should make sure that everything in your application is working with/in UTF-8 :
- Your PHP files, containing your source-code, should be in UTF-8
- There is probably some setting about that in your IDE/editor
- This will ensure that the strings you hard-code are in UTF-8 too
- When using some external data, before calling
node_save
on it, you must make sure it's in UTF-8- The
utf8_encode
function might help - Or maybe
mb_convert_encoding
, depending on the charset used by your input data.
- The
I've run into exactly that problem of strings cut before accented characters a couple of times, and, each time, making sure the strings were passed as UTF-8 solved it -- so maybe it'll work for you too ^^
Pascal MARTIN
2010-03-12 05:46:56