jorgep Posted March 8, 2007 Share Posted March 8, 2007 Hi, I wonder what could happen with my special chars in dreamweaver... I have a php file with defined constants for multilanguage porpouse, I have Spanish, Portuguese and English included. In my Spanish and Portuguese files, that look like this: define('_VPPIN','Contraseña'); define('_VPCODE','Código de Verificación'); define('_VPENTRAR','Entrar'); define('_VPENVIAR','Enviar'); I've been working lately with the charsets encodings... Today I noticed that my files looked a little diferent, ALL THE SPECIAL CHARACTERS WERE "CHOPPED"! Now It look like this: define('_VPPIN','Contrasea'); define('_VPCODE','Cdigo de Verificacin'); define('_VPENTRAR','Entrar'); define('_VPENVIAR','Enviar'); Note that the ñ and ó and all the special characters are missing!!! What can I do? I dont know what happened! Can Anyone explain? Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/ Share on other sites More sharing options...
rantsh Posted March 8, 2007 Share Posted March 8, 2007 I've got no clues * BUMP * Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/#findComment-202963 Share on other sites More sharing options...
effigy Posted March 8, 2007 Share Posted March 8, 2007 What encoding are you saving your file in? Are you only going to use characters from Latin-1? Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/#findComment-202976 Share on other sites More sharing options...
jorgep Posted March 8, 2007 Author Share Posted March 8, 2007 I was looking that property of the page and I think that it was UTF8. I tried reloading the file in Occidental European and It change the characters, but does not delete them... Im using right now the UTF8. I was traying to add chinesse support to our website, so I might need them for that. Is there a way I can have my files back? Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/#findComment-202984 Share on other sites More sharing options...
effigy Posted March 8, 2007 Share Posted March 8, 2007 You may be able to recover by saving the file as Latin-1 (ISO-8859-1). I'm guessing you copied these characters from Character Map or used a keyboard combination. Either way, you're (1) not in UTF-8, or (2) your editor is not displaying properly. What do you see for these characters when opening the file in a hex editor or running it through od -cx on Unix? Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/#findComment-202993 Share on other sites More sharing options...
jorgep Posted March 8, 2007 Author Share Posted March 8, 2007 It desn`t change when I switch to ISO-8859-1 (Still dont show the special chars)... I haven't check on an hex editor, but Im suspecting that it just chopped them, Let me check on the HEX and I'll let you know. Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/#findComment-203014 Share on other sites More sharing options...
jorgep Posted March 8, 2007 Author Share Posted March 8, 2007 I'll be out for 2 hours, brb later, thanks for any help you can give me... Link to comment https://forums.phpfreaks.com/topic/41852-dreamweaver-and-special-chars/#findComment-203024 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.