Commit Graph

19 Commits

Author SHA1 Message Date
moodler
db48c57c3c Merged fix for MDL-10254, thanks Valery! 2007-06-26 09:09:39 +00:00
stronk7
4e2cb0e3f3 Added entities_to_utf8() function to textlib, suitable to convert
any entity (numerical and html) to utf-8, providing a PHP4 and PH5
way to do the work.
Also, added the code2utf8() function to convert Unicode code numbers
to UTF-8 chars.

Merged from MOODLE_18_STABLE
2007-06-13 19:43:56 +00:00
toyomoyo
4d40aa144a grade import temporary buffer tables and encoding/import form changes 2007-06-05 09:28:15 +00:00
skodak
77b4d4be49 MDL-9075 utf-8 bom is now stripped from uploaded users cvs file; merged from MOODLE_18_STABLE 2007-04-10 15:32:37 +00:00
skodak
531468274f MDL-5229 and MDL-6196 adding gb18030 mime header encoding; merged from MOODLE_18_STABLE 2007-03-12 08:41:28 +00:00
skodak
684663f526 MDL-6196 infinite loop in header encoding when using some site charsets (gb18030); merged from MOODLE_18_STABLE 2007-03-08 00:05:58 +00:00
stronk7
e4023a4c20 Normalizing encoding by using textlib synonyms - parse_charset()
Credit goes to Petr.

Merged from MOODLE_18_STABLE
2007-03-05 18:28:33 +00:00
martinlanghoff
e7812e9c62 lib/textlib.class: Cache dir is now created correctly, allowing speed increase (SR# 595)
Previous logic had dir created only when mbstring wasn't used, but the
typo3 lib needs to cache some data regardless, for the specCharsToASCII
function, which uses internal translation tables.


Author: Luke Hudson <luke@catalyst.net.nz>
2006-10-31 05:03:54 +00:00
skodak
9c1cd39de5 Bug #5937 - Fix nonascii chars in graphs:
* text is converted to unicode - no html entities anymore
 * then all nonascii chars are converted to decimal number entites
 * default.ttf is searched in dataroot/lang and local language packs too
 * removed lang_decode() - obsoleded by proper entity converison above
 * updated documentation in lang/en_utf8/fonts/README.txt

merged from MOODLE_16_STABLE
2006-06-29 21:22:16 +00:00
stronk7
c539d6224b Now encode_mimeheader() only encodes the header if it isn't 100% ASCII. 2006-03-19 02:38:21 +00:00
stronk7
3ec5ec15bc Function encode_mimeheader() added. Finally, it seems that we have to
use our own function because phpmailer one doesn't handle multi-byte
characters, breaking them.
2006-03-19 01:09:15 +00:00
skodak
4352f048f5 workaround for some more uninitialized offset warnings 2006-03-12 20:06:12 +00:00
stronk7
e05fc498ea Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team)
(http://bugs.typo3.org/view.php?id=2814)
2006-03-09 17:29:58 +00:00
skodak
1ccc4867c5 comment improvement 2006-03-06 21:17:10 +00:00
skodak
46b8113012 optional unicode characters and better conversion to ascii in function clean_file(); fixed textlib setup code; unicode related cleanup in config-dist.php
I am going to review the usage of clean_filename() now
2006-03-04 11:35:08 +00:00
stronk7
dee5beecd7 If both mbstring and iconv are not present, use recode
as last resort to perform charset conversions before using
internal libraries.
2006-01-07 17:15:47 +00:00
moodler
6aaa17c7cc Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00
stronk7
b8a84ae782 Methods aren't static due to the Typo3 structure. 2005-10-22 16:16:39 +00:00
stronk7
779dc9aca1 Initial commit of Typo3 charset libraries and Moodle's textlib.class code.
Merged from MOODLE_15_STABLE
2005-10-17 15:48:46 +00:00