Getting escape chars through the parser without warnings
| From: | Adrian Gartland | Date: | Mon, 11 Nov 2002 18:19:55 +0000 |
| Subject: | Getting escape chars through the parser without warnings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-90791@lists.php.net to get a copy of this message | ||
When using iso-2022-jp encoded strings within the I have to
resort to doing error_reporting = ~E_COMPILE_WARNING
to avoid getting a million
Warning: Unexpected character in input: '' (ASCII=27) state=2 in
in the page.
iso-2022-jp uses escape characters go in and out of JIS
charsets. Compile warnining are pretty important for development.
Are there are less drastic ways of allowing the escape character
through?
As an example of its use, it goes something along the lines
of
<?
$asTokenStrings["LANG:AGENDA:LONG_DAYNAME_MON"] = "ascii-like-text here
ESC$B7nMKF|ESC(B ascii-like-text-here";
echo $asTokenStrings["LANG:AGENDA:LONG_DAYNAME_MON"];
?>
--
Adrian Gartland - Senior Systems Engineer - TV Portal Team
Oregan Networks UK Ltd Tel: +44 (0) 20 8846 0990
The White Building, 52-54 Glentham Road Fax: +44 (0) 20 8646 0999
Barnes, London. SW13 9JJ, United Kingdom WWW: http://www.oregan.net/