I have a templated page which has MetaTagger EA's. These are keywords and description. The values are in Japanese which is causing a problem.
In my tpl I am extracting these and using them in my html [meta/] tags as values.
My problem is that unless I do the following the text comes out all garbled. I also tried the -u option and that did not help. See below output.
Example "ボーズã�®æ¥*å‹™ï¼�店舗å�‘ã�‘製å“�ã�®ã‚¢ãƒ«ãƒ•ァベットé*†ä¸€è¦§ã�§ã�™ã€"
To get around this I've done the following.
use Encode;
my $iwhome = TeamSite::Config::iwgethome();
my $opath = getVpath(iwpt_get_ofile_name());
my $keywords = decode("utf8",qx($iwhome/bin/iwextattr -g TeamSite/Metadata/Keywords $opath));
my $description = decode("utf8",qx($iwhome/bin/iwextattr -g TeamSite/Metadata/Description $opath));
Note: getVpath is a method form a utility package. It works fine

Basically I'm wondering why a simple: my $var = qx($iwhome/bin/iwextattr -g TeamSite/Metadata/Keywords $opath); does not work??
I'm looking for some enterprise tips an making sure I use the BEST practices for international sites and templating. Please let me know your thoughts.
TeamSite 6.7
Solaris 10