Re: display undeclared iso-charset in UTF environment
Jörg Sommer <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Christian, Christian Ebert <[email protected]> wrote: > * Jörg Sommer on Thursday, September 14, 2006 at 10:14:23 +0000: >> my idea: >> >>> #v+ >> charset = fallback_charset_list[-1]; >> foreach (fallback_charset_list) >>> { >> variable cs = (); > > I didn't know about this kind variable assignment. Thanks. > >>> if ("0" == pipe_readline ("$iconv -s -f $cs -t ucs-4 '$artpath' >/dev/null 2>&1; echo $?"$, "broken iconv check")) >> { >> charset = cs; >>> break; >> } >>> } >>> #v- > > But does this not call iconv for every element of > fallback_charset_list again? And, to avoid, you would still have > to do something like: Do I understand you right, you don't want to call iconv with all but the last element of fallback_charset_list? Make a foreach loop over fallback_charset_list[[:-2]]. Regards, Jörg. -- Angenehme Worte sind nie wahr, wahre Worte sind nie angenehm. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642