Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 552... Línea 552...
552
                return $encoding;
552
                return $encoding;
553
            }
553
            }
554
        }
554
        }
Línea 555... Línea 555...
555
 
555
 
556
        // No match, check for UTF-8
556
        // No match, check for UTF-8
557
        // from http://w3.org/International/questions/qa-forms-utf-8.html
557
        // from https://w3.org/International/questions/qa-forms-utf-8.html
558
        if (preg_match('/\A(
558
        if (preg_match('/\A(
559
            [\x09\x0A\x0D\x20-\x7E]
559
            [\x09\x0A\x0D\x20-\x7E]
560
            | [\xC2-\xDF][\x80-\xBF]
560
            | [\xC2-\xDF][\x80-\xBF]
561
            | \xE0[\xA0-\xBF][\x80-\xBF]
561
            | \xE0[\xA0-\xBF][\x80-\xBF]