anonīms Posted December 14, 2012 Report Share Posted December 14, 2012 $string = 'aadasdasдфлвыдфылвщфывлфв'; print iconv("UTF-8","WINDOWS-1257//TRANSLIT",html_entity_decode( $string ,ENT_COMPAT,'utf-8')); nu nafigam man krievu burtu vietā izvadās ???????? aadasdas????????????????? Quote Link to comment Share on other sites More sharing options...
anonīms Posted December 14, 2012 Author Report Share Posted December 14, 2012 nu nav ;@ setlocale(LC_ALL, 'en_RU'); $string = 'aadasdasдфлвыдфылвщфывлфв'; print iconv("UTF-8","CP1257//TRANSLIT",html_entity_decode( $string ,ENT_COMPAT,'utf-8')); Quote Link to comment Share on other sites More sharing options...
aaxc Posted December 14, 2012 Report Share Posted December 14, 2012 Man personīgi šo iedeva, kad izpildīju tavu scriptu: Notice: iconv() [function.iconv]: Detected an illegal character in input string Quote Link to comment Share on other sites More sharing options...
anonīms Posted December 14, 2012 Author Report Share Posted December 14, 2012 kas tad tur viņam tāds nepatīk? krievu burti? Fails arī bija UTF-8 kodējumā.. Quote Link to comment Share on other sites More sharing options...
aaxc Posted December 14, 2012 Report Share Posted December 14, 2012 Viņam nepatīk krievu simbolus konvertēt uz CP1257//TRANSLIT. Tieši kāpēc, jau pats patēti. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.