I'm not completely sure what the actual question is, but I'll try and explain why I think your browser is seeing garbage when using Perl: if you are using Apache/mod_perl (or even Apache without mod_perl, I suppose) to talk to Oracle then you'll need to set NLS_LANG in your httpd.conf.