Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 20.04.2007, 08:51   #7
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

I could help, good way is sharing experience with problems in that forum.

Yesterday i finally found way to correctly display national characters from mssql db, eg:
Code:
select nickname from user_data ...
results in some garbage instead of national chars from mssql_fetch_array, but you could use:
Code:
select nickname collate your_local_collation from user_data ...
thus correctly get all national chars.

For inserting strings to cached functions you could use:
Code:
function ansi2unicode ( $ansi_str ) {
  return ( iconv ( "CP1250", "UCS-2LE", $ansi_str ) . chr ( 0 ) . chr ( 0 ) );
}
change "CP1250" to your windows locale charset.

If you have questions, feel free to ask PM.
Kenjiro is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:48.