apopular Posted December 13, 2014 Share Posted December 13, 2014 Hi, i dont know what i do, only in product_info.php page ihave this error, strange characters. http://www.loja3online.com.br/product_info.php/capa-para-colchao-capa-hospitalar-impermeavel-para-colchao-de-solteiro-com-ziper-loja3online-2090345-p-42 But i dont have this in any another page. http://www.loja3online.com.br/index.php/algodao-c-93 what i do: 1 - i change all DB using admin tool for utf8_unicod 2 - i saved, using dreamweaver the file in all anothers formats 3 - in aplication top, i removed one at tine save and call in fiferox all this lines <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />4 - in my portuguese.php i changed to // on RedHat try 'pt_BR'// on FreeBSD try 'pr_BR.ISO_8859-1'// on Windows try 'br', or 'Português'@setlocale(LC_TIME, 'pt_BR.ISO_8859-1'); But nothing is working in product page, if you see, i have in this pages for example Transforme seu colchão comum em um colchão hospitalar (ã) 2 times in this line in description Capa hospitalar imperme�vel para colch�o de solteiro com ziper (é and ã) in title thaks, Marcelo I did, helped or traslate. http://addons.oscommerce.com/profile/104964 My english it´s só poor, but of you need help in portuguese, like shipping and payment that´s make a diference in brazil, come one, Obrigado (thank´s) Link to comment Share on other sites More sharing options...
MrPhil Posted December 14, 2014 Share Posted December 14, 2014 Both pages specify ISO-8859-1 (Latin-1) as the encoding, but the "bad" page is being overridden somewhere, and is actually displaying in UTF-8 (the single byte Latin-1 accented characters are invalid, and show up as ?-in-black-diamond). I don't see anything in the page source -- do you have anything in .htaccess overriding encodings? 1 - i change all DB using admin tool for utf8_unicod Please clarify -- you changed the database to UTF-8 or to Latin-1? 2 - i saved, using dreamweaver the file in all anothers formats I don't understand what you said. Don't use Dreamweaver to edit PHP files -- it's terrible for that purpose. Use a real editor (ViM, Notepad++, etc.) and an FTP client to transfer files. 3 - in aplication top, i removed one at tine save and call in fiferox all this lines Again, I can't understand what you did here. Don't go removing lines in hopes of fixing things -- you have to understand why they're in there, what effect they're having, and what changes you can make. You also have a UTF-8 Byte Order Mark  on the "good" page you gave. This means you were using a bad editor and editing in UTF-8 encoding. You need to find all of these marks and erase them. You're editing in UTF-8, which it sounds like you don't want. If you're lucky, removing all the BOMs might even fix the page(s) being forced into UTF-8 (just a guess). Link to comment Share on other sites More sharing options...
mustaphaturk Posted December 15, 2014 Share Posted December 15, 2014 Hi, i had same problem: account.php was: define('OVERVIEW_SHOW_ALL_ORDERS', '(tüm sipari�leri g�ster)'); define('OVERVIEW_PREVIOUS_ORDERS', '�nceki Sipari�ler'); define('MY_ACCOUNT_TITLE', 'Hesab�m'); define('MY_ACCOUNT_INFORMATION', '�yelik Bilgilerini G�r Ya Da De�i�tir.'); define('MY_ACCOUNT_ADDRESS_BOOK', 'Adreslerimdeki Bilgileri G�r Ya Da De�i�tir.'); define('MY_ACCOUNT_PASSWORD', '�yelik �ifremi De�i�tir.'); define('MY_ORDERS_TITLE', 'Sipari�lerim'); define('MY_ORDERS_VIEW', 'Verdi�im Sipari�leri G�r.'); define('EMAIL_NOTIFICATIONS_TITLE', 'E-Mail Uyar�lar�'); define('EMAIL_NOTIFICATIONS_NEWSLETTERS', 'Zincir maile �ye ol ya da �yelikten ��k.'); define('EMAIL_NOTIFICATIONS_PRODUCTS', '�r�n hat�rlatma listemi g�r ya da de�i�tir.'); ?> and frontpage was: �yelik Bilgilerim Hesab�m�yelik Bilgilerini G�r Ya Da De�i�tir. Adreslerimdeki Bilgileri G�r Ya Da De�i�tir. �yelik �ifremi De�i�tir. Sipari�lerimVerdi�im Sipari�leri G�r. E-Mail Uyar�lar� Zincir maile �ye ol ya da �yelikten ��k. �r�n hat�rlatma listemi g�r ya da de�i�tir. So i changed my account.php to proper language and it was solved. By the way i didn't use dreamweaver but it was probably cute ftp's editor. Link to comment Share on other sites More sharing options...
apopular Posted December 16, 2014 Author Share Posted December 16, 2014 @@mustaphaturk Thank you, i tried this, open file in notepad++ and upload by cpanel in file manager, does not work. i dont know what i do, rsrsrs @@MrPhil Both pages specify ISO-8859-1 (Latin-1) as the encoding, but the "bad" page is being overridden somewhere, and is actually displaying in UTF-8 (the single byte Latin-1 accented characters are invalid, and show up as ?-in-black-diamond). I don't see anything in the page source -- do you have anything in .htaccess overriding encodings? My htaccess i clean this and upload a blank file, and does´n work with or without # Addons oscommerce.com <IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary Accept-Encoding </FilesMatch> </IfModule> # vale o de baixo #<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$"> #<IfModule mod_expires.c> #ExpiresActive on #ExpiresDefault "access plus 30 days" #</IfModule> #Header unset ETag #FileETag None #</FilesMatch> #cache imaster # http://imasters.com.br/search/seo/10-trechos-de-arquivos-htaccess-que-voce-deve-ter-a-mao/ # Aqui eu defini arquivos estáticos para o cache por 24 horas <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$"> Header set Cache-Control "max-age=28800" </FilesMatch> # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension: <files *.html> SetOutputFilter DEFLATE </files> # testing 10/12/2014 21:03 # imasters.com.br/search/seo/10-trechos-de-arquivos-htaccess-que-voce-deve-ter-a-mao/ # # Ensure www on all URLs. RewriteCond %{HTTP_HOST} ^loja3online.com.br [NC] RewriteRule ^(.*)$ http://www.loja3online.com.br/$1 [L,R=301] # alterar só quando vc adicionar um certificado...... # Ensure we are using HTTPS version of the site. #RewriteCond %{HTTPS} !on #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Ensure all URLs have a trailing slash. RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://www.loja3online.com.br/$1/ [L,R=301] # erros customizados ErrorDocument 500 /404.shtml Please clarify -- you changed the database to UTF-8 or to Latin-1? i changed for utf8_unicode_ci http://easycaptures.com/fs/uploaded/950/3098932867.png I don't understand what you said. Don't use Dreamweaver to edit PHP files -- it's terrible for that purpose. Use a real editor (ViM, Notepad++, etc.) and an FTP client to transfer files. yes, i tried to open in notepad++ and upload in cpanel/filemanager i tried in product_info.php and in my language fale Again, I can't understand what you did here. Don't go removing lines in hopes of fixing things -- you have to understand why they're in there, what effect they're having, and what changes you can make. You also have a UTF-8 Byte Order Mark  on the "good" page you gave. This means you were using a bad editor and editing in UTF-8 encoding. You need to find all of these marks and erase them. You're editing in UTF-8, which it sounds like you don't want. If you're lucky, removing all the BOMs might even fix the page(s) being forced into UTF-8 (just a guess). i´m open all files, i read in adobe website how to change files for utf-8, i do and nothing. any ideia? I did, helped or traslate. http://addons.oscommerce.com/profile/104964 My english it´s só poor, but of you need help in portuguese, like shipping and payment that´s make a diference in brazil, come one, Obrigado (thank´s) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.