I used some perl statement in a tpl file as follow:
$cmd = "$iwhome/bin/iwextattr -s title =\"$title\" " . $output_file;
`$cmd`;
and i hop to get the title of a piece of news from its extended attributes.
The $title is utf8 encoding in simplified chinese,
when i generate the html using this tpl in UI,it works,and the title is displayed in the file attribute list in utf8 properly .however ,when i use the "iwgen "from the command line ,the "title" attribute disappeared, and the error message is
"0403-065 encountered uncompleted or invalid double byte character "
so ,could someone tell me what are the differences between calling the "iwgen "in command line and doing a "new record "in UI ??i am really stuck and feel so helpless

thank you in advance !