Re: Binarycloud and UTF

alex black <[email protected]> Fri, 18 Mar 2005 11:25:32 -0800
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
> A.) All PHP and Smarty template files are UTF-8 without BOM (Quick 
> overview available at [1]). This ensures that we can have all 
> languages in strings etc.

+1, agree.


> B.) We use iconv and the iconv functions (from the manual):
>
>   - iconv_strlen  Returns the character count of string
>   - iconv_strpos  Finds position of first occurrence of a needle 
> within a haystack
>   - iconv_strrpos Finds the last occurrence of a needle within the 
> specified range of haystack
>   - iconv_substr  Cut out part of a string
>
> Though mbstrings provides more multi byte safe functions it is not 
> very common and if binarycloud depends on it we set the entry level 
> pretty high (own server).

Agreed, plus we can use pear il8n.

> C.) Most configuration values should be English and use 7bit only. 
> This means we do not need multi byte safe methods in many places.

+1

> D.) We use PEAR/I18Nv2 to transcode from UTF-8 to the charset 
> requested by the user (or set in code). See [3] for the documentation 
> of this feature of I18Nv2

+1

> If all base code follows this policy, it should not be too hard to 
> create UTF-8 pages with binarycloud.

Yepp :)

_a

-- 
alex black, founder
the turing studio, inc.

510.666.0074
[email protected]
http://www.turingstudio.com

2600 10th street, suite 635
berkeley, ca 94710


_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev