System.I18N.core
[ class tree: System.I18N.core ] [ index: System.I18N.core ] [ all elements ]

Procedural File: util.php

Source Location: /I18N/core/util.php



Page Details:

I18N Utility file.

This program is free software; you can redistribute it and/or modify it under the terms of the BSD License.

Copyright(c) 2004 by Wei Zhuo. All rights reserved.

To contact the author write to <weizhuo[at]gmail[dot]com> The latest version of PRADO can be obtained from: http://prado.sourceforge.net/




version:  $Revision: 1.3 $ $Date: 2005/08/27 03:21:12 $
author:  Wei Zhuo <weizhuo[at]gmail[dot]com>








I18N_toEncoding [line 165]

string I18N_toEncoding( string $string, mixed $to)

Convert UTF-8 strings to a different encoding. NB. The result may not have been encoded if iconv fails.



return:  encoded string.


Parameters

string   $string   the UTF-8 string for conversion
[ Top ]



I18N_toUTF8 [line 149]

string I18N_toUTF8( string $string, mixed $from)

Convert strings to UTF-8 via iconv. NB, the result may not by UTF-8 if the conversion failed.



return:  UTF-8 encoded string, original string if iconv failed.


Parameters

string   $string   string to convert to UTF-8
[ Top ]



parseDSN [line 27]

array parseDSN( string $dsn)

For a given DSN (database connection string), return some information about the DSN. This function comes from PEAR's DB package.



return:  DSN information.


Parameters

string   $dsn   DSN format, similar to PEAR's DB
[ Top ]



© 2004-2005 PRADO Software Group. All Rights Reserved.