Mikijs Posted February 20, 2009 Report Share Posted February 20, 2009 Sveiki php.lv cilvēki! Teikšu atklāti, jūtos kā galīgi zaļš =) kādu laiciņu nebiju bijis, te pēkšņi reorganizācija :) mm .. Skaist :) Ok tad pie lietas, mūsdienās cilvēki izmanto RTF failus, kuros glabā visādus dokumentus un vēl sazin ko. Saucās "Ritch text format". interesē vai kādam ir RTF alfabēta masīvs php vidē ? Domāju ka vajadzētu būt skaidram .. Piemērs.. <?php $masivs = array ( "š" => "\\\'f0", "ņ" => "\\\u326\\\'3f" ); ?> Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted February 20, 2009 Report Share Posted February 20, 2009 Sveiks, Mikij! Wikipēdijā par RTFu rakstīts: Character encoding RTF is an 8-bit format. That would limit it to ASCII, but RTF can encode characters beyond ASCII by escape sequences. The character escapes are of two types: code page escapes and Unicode escapes. In a code page escape, two hexadecimal digits following an apostrophe are used for denoting a character taken from a Windows code page. For example, if control codes specifying Windows-1256 are present, the sequence \'c8 will encode the Arabic letter beh (ب). If a Unicode escape is required, the control word \u is used, followed by a 16-bit signed decimal integer giving the Unicode codepoint number. For the benefit of programs without Unicode support, this must be followed by the nearest representation of this character in the specified code page. For example, \u1576? would give the Arabic letter beh, specifying that older programs which do not have Unicode support should render it as a question mark instead. The control word \uc0 can be used to indicate that subsequent Unicode escape sequences within the current group do not specify a substitution character. tātad - vari droši kodēt formātā \u - kur sekojošais kods ir Unicodē Quote Link to comment Share on other sites More sharing options...
Mikijs Posted February 20, 2009 Author Report Share Posted February 20, 2009 Ahā, liels paldies :) uzreiz vesels lērums darbu mazāk :) m. Quote Link to comment Share on other sites More sharing options...
bubu Posted February 20, 2009 Report Share Posted February 20, 2009 mūsdienās cilvēki izmanto RTF failus, kuros glabā visādus dokumentus un vēl sazin ko. Saucās "Ritch text format". Vispār jau mūsdienās RTF izmanto tikai retais, vismaz es tik bieži tādiem neuzduros. Pārsvarā cilvēki izmanto doc, docx vai odt dokumentu glabāšanai. 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.