• ok, thanks for your time.

    i extend toUpperCase() to upperCase French diacritic accents

    String.prototype.toUpperCaseFr = function toUpperCaseFr() {
        return this.toUpperCase().replace(/à/gm, "À").replace(/â/gm, "Â").replace(/é/gm, "É").replace(/è/gm, "È").replace(/ê/gm, "Ê").replace(/ë/gm, "Ë").replace(/î/gm, "Î").replace(/ï/gm, "Ï").replace(/ô/gm, "Ô").replace(/ö/gm, "Ö").replace(/û/gm, "Û").replace(/ü/gm, "Ü").replace(/ù/gm, "Ù").replace(/ç/gm, "Ç").replace(/œ/gm,"Œ");
    };
    

    it's working.

    é.

About

Avatar for Mrbbp @Mrbbp started