Echo Output to Unicode File
| From: | Zach Curtis | Date: | Tue, 29 Apr 2003 17:06:48 +0000 |
| Subject: | Echo Output to Unicode File | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145675@lists.php.net to get a copy of this message | ||
I am having difficulty trying to output a variable into a unicode file. I
have file called survey.php that gets a password from a function and then
does an include on a login.inc which is an html based file saved in unicode
(has Japanese text). However, the php in login.inc never gets interpreted. I
know the password variable contains a value because if I save login.inc as
ascii the $password variable outputs fine. But when login.inc is unicode,
the php is not interpreted.
// survey.php
$password = getAccess($id, $access, $msg, $survey_msg);
$login = "../cpjp/login.inc";
include($login);
// login.inc
<td><input type="hidden" name="sys_password" value="<?php echo
$password;
?>"></td>
Any thoughts? Thanks much.
_________________
Zach Curtis
Programmer Analyst
POPULUS
www.populus.com
_________________
Confidentiality Statement:
This e-mail message and any attachment(s) are confidential and may contain
proprietary information that may not be disclosed without express
permission. If you have received this message in error or are not the
intended recipient, please immediately notify the sender by replying to this
message and then please delete this message and any attachment(s). Any use,
dissemination, distribution, or reproduction by unintended recipients is not
authorized. Thank you.