Programadores Programador UTF8

Estado
No está abierto para más respuestas.

xtremmetal

Cobre
Usuario de Bronce
Mensajes
928
Puntuación de reacción
0
Reputación de negocios - 100%
17   0   0
Buenas, necesito un programador que me haga lo siguiente...

Cuando subo un texto, este no se transforma en UTF8 o como se diga. Me refiero a los acentos, Ñ y demás textos. No es WP. Y en ese mismo archivo, hacer que en vez que se creen tres imágenes, se creo solo una.


Lo de los acentos es por la base de datos, no por no poner una meta u otra en la página :)

Pago por Paypal
 

lobogris

Platino
Usuario de Bronce
Mensajes
1,537
Puntuación de reacción
0
Reputación de negocios - 90.9%
10   1   0
Si no te importa pagar por otro método envíame info por MP :)
 

José el frances

Cobre
Usuario de Bronce
Mensajes
462
Puntuación de reacción
0
Reputación de negocios - 100%
2   0   0
Buenas, necesito un programador que me haga lo siguiente...

Cuando subo un texto, este no se transforma en UTF8 o como se diga. Me refiero a los acentos, Ñ y demás textos. No es WP. Y en ese mismo archivo, hacer que en vez que se creen tres imágenes, se creo solo una.


Lo de los acentos es por la base de datos, no por no poner una meta u otra en la página :)

Pago por Paypal

Descárgate el Notepad y prueba a guardarlo ahí ;)
 

xtremmetal

Cobre
Usuario de Bronce
Mensajes
928
Puntuación de reacción
0
Reputación de negocios - 100%
17   0   0
¿Guardaste la BD como UTF8?

si si... al ser un script yankee o a saber de donde, se les pasó eso. Los iframes de los vídeos si los convierte bien, pero los textos no, se les añaden códigos raros.

- - - Actualización- - -

Servidor: Localhost via UNIX socket
Tipo de servidor: MySQL
Versión del servidor: 5.5.40-cll - MySQL Community Server (GPL)
Versión del protocolo: 10
Usuario: xxxxxxxxxxxxxxx
Conjunto de caracteres del servidor: UTF-8 Unicode (utf8

- - - Actualización- - -

PHP:
$approve_videos = $config[approve_videos];
				
					if($approve_videos == 1) 
					{
						$active = "active='0'";
					} 
					else 
					{
						$active = "active='1'";
					}
				
					$thepublic = htmlentities(strip_tags($_REQUEST['public']));
					$theallowcomments = htmlentities(strip_tags($_REQUEST[allowcomments]));
					$theallowratings = htmlentities(strip_tags($_REQUEST[allowratings]));
					$theallowembeds = htmlentities(strip_tags($_REQUEST[allowembeds]));
					$theallowdownloads = "0";
					$themature = htmlentities(strip_tags($_REQUEST[mature]));
					$mins = intval($_REQUEST[mins]);
					$secs = intval($_REQUEST[secs]);
					$runtime = ($mins * 60) + $secs;
					
					$safeinput = htmlentities($videourl, ENT_QUOTES);

  					$query = "INSERT INTO videos SET USERID='$_SESSION[USERID]', title='".mysql_real_escape_string($thetitle)."', description='".mysql_real_escape_string($thedesc)."', tags='".mysql_real_escape_string($thetags)."', categories='".mysql_real_escape_string($thecat)."', filesize='$space', public='".mysql_real_escape_string($thepublic)."', time_added='".time()."', date_added='".date("Y-m-d")."', $active, allowcomments='".mysql_real_escape_string($theallowcomments)."', runtime='".mysql_real_escape_string($runtime)."', allowratings='".mysql_real_escape_string($theallowratings)."', allowembeds='".mysql_real_escape_string($theallowembeds)."', allowdownloads='".mysql_real_escape_string($theallowdownloads)."'$addseriesdata, mature='".mysql_real_escape_string($themature)."', embedcode='".mysql_real_escape_string($safeinput)."'";

					$conn->execute($query);
    				$videoid = mysql_insert_id();

- - - Actualización- - -

Creo que aquí está el error:

PHP:
function seo_clean_titles_no_trail($title)
{
	$title = str_replace ( array ('À', 'à', 'Á', 'á', 'È', 'è', 'É', 'é', 'Ì', 'ì', 'Í', 'í', 'Ñ', 'ñ', 'Ò', 'ò', 'Ó', 'ó', 'Ù', 'ù', 'Ú', 'ú', 'Ü', 'ü', 'Ã', '³', 'æ', 'þ', 'á', 'ð', '¨', 'ö', 'Ö'), array ( 'A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'Ñ', 'ñ', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
    $title = str_replace("&", "&", $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $title = str_replace(
            array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"), 
                        "", $title);
    $title = str_replace(array('_', " ", "&"), array("-", "-", "und"), $title);
    $title = htmlentities(strtolower($title));
    $title = str_replace ( array ('ä', 'ö', 'ü', 'ß'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $results = rawurlencode($title);
	echo "$results";
} 

function seo_clean_titles_sendmail($title)
{
	$title = str_replace ( array ('À', 'à', 'Á', 'á', 'È', 'è', 'É', 'é', 'Ì', 'ì', 'Í', 'í', 'Ñ', 'ñ', 'Ò', 'ò', 'Ó', 'ó', 'Ù', 'ù', 'Ú', 'ú', 'Ü', 'ü', 'Ã', '³', 'æ', 'þ', 'á', 'ð', '¨', 'ö', 'Ö'), array ( 'A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'Ñ', 'ñ', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
    $title = str_replace("&", "&", $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $title = str_replace(
            array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"), 
                        "", $title);
    $title = str_replace(array('_', " ", "&"), array("-", "-", "und"), $title);
    $title = htmlentities(strtolower($title));
    $title = str_replace ( array ('ä', 'ö', 'ü', 'ß'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $results = rawurlencode($title);
	return "$results";
} 

function seo_clean_titles_regular($title)
{
	$title = str_replace ( array ('À', 'à', 'Á', 'á', 'ý', 'Ý', 'È', 'è', 'É', 'é', 'Ì', 'ì', 'Í', 'í', 'Ñ', 'ñ', 'Ò', 'ò', 'Ó', 'ó', 'Ù', 'ù', 'Ú', 'ú', 'Ü', 'ü', 'Ã', '³', 'æ', 'þ', 'á', 'ð', '¨', 'ö', 'Ö'), array ( 'A', 'a', 'A', 'a', 'y', 'Y', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'Ñ', 'ñ', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
    $title = str_replace("&", "&", $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $title = str_replace(
            array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"), 
                        "", $title);
    $title = str_replace(array("&"), array("und"), $title);
    $title = htmlentities(strtolower($title));
    $title = str_replace ( array ('ä', 'ö', 'ü', 'ß'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $results = rawurlencode($title);
	return "$results";
}
 

status

Piedra
Usuario de Piedra
Mensajes
32
Puntuación de reacción
0
Reputación de negocios - 0%
0   0   0
Cambia el cotejamiento a utf8_spanish_ci.
 

xtremmetal

Cobre
Usuario de Bronce
Mensajes
928
Puntuación de reacción
0
Reputación de negocios - 100%
17   0   0
Trabajo terminado y realizado por Julio

Gracias a todos por la ayuda :)
 
Estado
No está abierto para más respuestas.
Arriba