Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/02/2013, 18:22
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: Pasar a mayúsculas

Pues a mi me funciona bien:
Código PHP:
Ver original
  1. <?php
  2. setlocale(LC_ALL, 'es_MX');
  3.  
  4. $string = 'versi&oacute;n';

Aunque si no te sirve con el setlocale, me encontré esta función que te puede servir:
Código PHP:
Ver original
  1. function ucfirstHTMLentity($matches){
  2.         return "&".ucfirst(strtolower($matches[1])).";";
  3.     }
  4.     function fullUpper($str){
  5.         $subject = strtoupper(htmlentities($str, null, 'UTF-8'));
  6.         $pattern = '/&([A-Z]+);/';
  7.         return preg_replace_callback($pattern, "ucfirstHTMLentity", $subject);
  8.     }

Saludos.