slavanau Posted July 7, 2013 Share Posted July 7, 2013 Hi, I am working with the Russian language, and where there is a modifier estsape 'htmlall'. I see that in the picture. This is bad for SEO. Please help. Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2013 Share Posted July 7, 2013 what kind of document encoding you've got? can you check it please? Link to comment Share on other sites More sharing options...
NemoPS Posted July 8, 2013 Share Posted July 8, 2013 You should check that htmlall also has utf8 as char encoding, as vekia suggested. Like escape:'htmlall':'utf8' 1 Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2013 Share Posted July 8, 2013 that's right, it is realted to this, i tried to use encoding without utf8 for polish chars and i've got similar problem, just follow Nemo suggestion Link to comment Share on other sites More sharing options...
slavanau Posted July 8, 2013 Author Share Posted July 8, 2013 All standard. Source code I not the rules. A standard template. PrestaShop 1.5.4.1. Yes, htmlall also has utf8 as char encoding. Link to comment Share on other sites More sharing options...
NemoPS Posted July 8, 2013 Share Posted July 8, 2013 Are you pulling those values out of the database? if so, check that the table where they're stored also has utf8 Link to comment Share on other sites More sharing options...
slavanau Posted July 9, 2013 Author Share Posted July 9, 2013 All my tables has utf8_general_ci encoding. Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 try to use: escape:'html' instead the escape:'htmlall' Link to comment Share on other sites More sharing options...
slavanau Posted July 9, 2013 Author Share Posted July 9, 2013 I tried it, it works, but in the template 93 files with the modifier. That all the rules? Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 unfortunately it is necessary in this case. what kind of software you use to edit .tpl files? Im asking because in many editors have got features called "mass replace" in the notepad++ you can do it with one mouse click: 2. Bulk find & replace If you want to replace a certain entry in your file(s), Notepad++ is your (wo)man. Not only can it instantly search through all entries in a file, it can search all open files or even all files in a directory (including sub-directories), and then, only matching certain file types. Link to comment Share on other sites More sharing options...
slavanau Posted July 9, 2013 Author Share Posted July 9, 2013 I use notepad + +, and know this feature, but thanks anyway. Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2013 Share Posted July 10, 2013 ohh so sorry, i just thought that you asked for quickest method to change the values in "bulk" everything works for you as you expect? Link to comment Share on other sites More sharing options...
slavanau Posted July 10, 2013 Author Share Posted July 10, 2013 Everything works, thanks. But developers should pay attention to it. Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2013 Share Posted July 10, 2013 well, you've got right but the issue is really weird. for example, sometimes it appears, sometimes not. I don't know exactly what, but I think that this isn't related to prestashop only. I think that it is related to the server configuration Link to comment Share on other sites More sharing options...
Amazzing Posted October 22, 2013 Share Posted October 22, 2013 (edited) I have the same issue about cyrillic symbols. My hosting prodiver assured me that no any additional encoding is performed on their side. So I have checked the htmlall behaviour of different PS versions on two different servers. It comes out that in PS 1.5.3.1 there is no problem displaying cyrillic characrers using htmlall. But in PS 1.5.5.0 and higher, cyrillic symbols are escaped if you try to display them using htmlall. Manually replacing all "htmlall" in .tpl files is not the best option. So I am still looking for a solution. Would be glad to hear any advices on that topic Edited October 22, 2013 by Amazzing (see edit history) Link to comment Share on other sites More sharing options...
Amazzing Posted October 22, 2013 Share Posted October 22, 2013 in PS 1.5.4.1 same issue persists. So most probably the reason for this lies in the update from 1.5.3.1 to 1.5.4.1 Link to comment Share on other sites More sharing options...
vekia Posted October 22, 2013 Share Posted October 22, 2013 Manually replacing all "htmlall" in .tpl files is not the best option. and if any other solution doesn't exist? why you think that it isn;t best option? Link to comment Share on other sites More sharing options...
Amazzing Posted October 22, 2013 Share Posted October 22, 2013 and if any other solution doesn't exist? why you think that it isn;t best option? By saying 'it is not the best option' I meant, the best option would be to find and deal with the reason for that behaviour. But as long as we don't know the reason, we have to manually replace "htmlall"-s. And I think we cannot just make a bulk replace in all tpls, because sometimes htmlall is used in links and input values. And it is used there for some reason. So I don't exactly know what might be the effet of deleting it. So we have to go throrugh tpl files and find appropriate tags that should be modified. This is what I did for my current project. But for future projects I would like to find a better option. Link to comment Share on other sites More sharing options...
Recommended Posts