php-i18n Digest 24 Jan 2008 23:39:38 -0000 Issue 382

Topics (messages 1149 through 1152):

Re: intl extension
        1149 by: Andi Gutmans

Re: mssql and latin characters
        1150 by: Cary Clark

Code point iteration
        1151 by: Naz Gassiep

Output formatted dates using Zend_Date
        1152 by: troxy

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
David,

Besides case folding is there anything else you'd like to see? Not long
wishlist but short version of stuff you really feel we should have in
there and would benefit from an ICU implementation.
Thanks,

Andi

> -----Original Message-----
> From: Stanislav Malyshev [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 22, 2008 11:27 AM
> To: David M.
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-I18N] Re: intl extension
> 
> > Any hope on getting case folding in there? ICU supports it :) It is
> 
> We plan to have a bunch of stuff dealing with unicode characters
later,
> but not in the first release. First release is to deal mostly with
> locale-dependent stuff (though not exclusively). So there's definitely
> hope, but probably also some waiting involved :)
> --
> Stanislav Malyshev, Zend Software Architect
> [EMAIL PROTECTED]   http://www.zend.com/
> (408)253-8829   MSN: [EMAIL PROTECTED]
> 
> --
> PHP Unicode & I18N Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- Windows and Unix platforms use different Latin-1 character set encodings that are not entirely compatible. Windows uses "windows-1252" (also referred to as "cp1252" by some platforms) and Unix systems typically use the "iso-8859-1" character set. The first thing I would try is changing your PHP code to this:

<?php
mssql_connect('server','user','pass');
mssql_select_db('db');

$r = mssql_query(“set names cp1252”);
$r = mssql_query(“select some_column from some_table”);
$d = mssql_fetch_assoc($r);

echo $d['some_column'];
?>

The "set names <charset>" query tells the MySQL server that you want to send and receive data to/from the server in the cp1252 (windows-1252) encoding instead of its default encoding (which again is probably iso-8859-1). Hopefully this will solve your problem.

Regards,
Cary Clark

--- End Message ---
--- Begin Message --- Given a Unicode UTF8 character, how would you get the character at the very next code point?
Thanks,
- Naz.

--- End Message ---
--- Begin Message ---
Hello,

I'm wondering about how to output formatted dates using Zend_Date.

Let's say I have a Zend_Db_Table_Rowset with a date column stored as unix
timestamps.

Now I want to iterate over this rowset and output the date as "EEEE dd MMMM
yyyy".

What's the best way to achieve this?

Thank you,

--Emil
-- 
View this message in context: 
http://www.nabble.com/Output-formatted-dates-using-Zend_Date-tp15077874p15077874.html
Sent from the Php - Internationalization (i18n) mailing list archive at 
Nabble.com.

--- End Message ---

Reply via email to