Welcome Guest, Not a member yet? Register   Sign In
MsSql Server 2000 collation
#3

[eluser]fdog[/eluser]
You could always extend the text helper to achieve that output.

Code:
/**
* UTF to Latin
*
* Outputs latin.
*
* @accesspublic
* @param    string
* @return    string
*/    
if ( ! function_exists('utf2latin'))
{
    function utf2latin($text)
    {
        $text=htmlentities($text,ENT_COMPAT,'UTF-8');
        return html_entity_decode($text,ENT_COMPAT,'ISO-8859-1');
    }
}

/**
* Latin to UTF
*
* Outputs UTF
*
* @access    public
* @param    string
* @return    string
*/    
if ( ! function_exists('latin2utf'))
{
    function latin2utf($text)
    {
        $text=htmlentities($text,ENT_COMPAT,'ISO-8859-1');
        return html_entity_decode($text,ENT_COMPAT,'UTF-8');
    }
}

Use the latin2utf function when you work with mssql.


Messages In This Thread
MsSql Server 2000 collation - by El Forum - 07-13-2009, 08:58 AM
MsSql Server 2000 collation - by El Forum - 07-13-2009, 09:25 AM
MsSql Server 2000 collation - by El Forum - 08-07-2009, 04:41 PM
MsSql Server 2000 collation - by El Forum - 08-07-2009, 11:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB