error in update in language loses accents throughout the site

ismaelmagaw

At this point, I would like the download gallery module to work. Because when I upload files, even in version 2.8.3, the files are not attached on the pages. The link you posted on the gallery module donwload does not open.

Gast

Quote from: jacobi22maybe you give us a example for your problem

i think, i understand the problem, but i think also, i've no chance to help without informatins  :oops:

your old project use utf8_mb4 as charset, WB 2.10 use utf8 and the next WB-Version use utf8_mb4 (if i understand everything correct).

i try, to give some technical information about the way in download-gallery, version 2.66
normalize, the dl-gallery give dl-links like this -> https://www.domain.tld/modules/download_gallery/dlc.php?file=39&id=1505905947
the file_id and the timestamp from the last modification
with this infos, it check the permissions for this download and (if needed) for this User
is everything okay, the script actualize the counter (+1), read the link to this file from the database and makes a redirect to this file

And here, i think, is the problem: the file-name, readed in the database, is different to the original file-name
simple solution: dont use special chars in the file-name
other way's: maybe its possible to en- or decode the links from the database back to the original, but we need some help for this

what is the original file-name and what is the result for the 404 (see link in adress-line)

feel free, to send me a list with some examples, if you want, of course also via PM or Email

maybe, its a solution, to wait a couple of day's (or weeks? - i dont know) for the next wb-version. if you want, i can give you a test-version of this new package or i can test your problem in my locale testarea - but i need some informations for this

P.S.: WB has not a DLG 3 for public use, looks like the Version from the fork, not possible to say, whats happend there on the public pages, maybe only a settings problem in DLG
DLG 2 is (i think) 4-6 years old. DLG 3 use (i my eyes) a better, safer method to read and use the file-name, prepared for multibyte-use

ismaelmagaw

All the files that I put in the pages with the module gallery download that take words with accentuation. With the upgrade to version 2.10 were also with errors and do not open in download, as well as the name of these pages, the title also have errors. Title of the pages is easy to change, now the files by the module gallery download are many and with errors of language. I also noticed that if you change the "media" file, attaching it again opens it. But it is a time consuming process, to walk to fix the file to the treasure ... Another error that the gallery donwload gives is in the attach file without being by the media, it does not attach any direct file to attach in the pages. The data of the module are: Name: Download Gallery 2
Type: Page
Author: Hudge, Woudloper, M. Gallas, R. Smith, C. Sommer, F. Heyne
Release date: 2.66
Designated for: Website Baker 2.8
Description: This page is designed for making a download gallery page
See help file for more information.

I installed, another module, a new version of the download gallery 3, this attaches the files, but they do not appear visible for download in the public pages.

Gast

the language file has nothing to do with links or download. Content in this language file are a lot of variables for usage in the backend.
example:



maybe you give us a example for your problem

ismaelmagaw

I saved the file "pt.txt" as the name of "PT.php" and utf8 -LF. Many files found on the accented pages that were downloadable have been changed and the language has changed and now you can not download them giving error. The media link line has changed. Solution? What I do?

ismaelmagaw

Gravei o ficheiro "pt.txt" como nome de "PT.php" e utf8 -LF. Muitos ficheiros que se encontram nas páginas com acentuação que estavam para download foram alterados e a linguagem mudou e agora não se consegue fazer download deles dando erro. A linha do endereço (link) do media foi alterada. Solução? Que faço?

DarkViper

Quote from: https://wiki.websitebaker.org/doku.php/en/dev/all/psr/psr-1Files MUST use only UTF-8 without BOM for PHP code.

Windows-Notepad let you run in trouble...
Use Notepad++  ( https://notepad-plus-plus.org/ ) instead.
There you can set:  Unix-EOL (LF), UTF-8 without BOM (ByteOrderMark)

Using Linux? There are plenty of good IDE available. A real good and small one will be Geany ( http://geany.org/ )
or more easy:  apt-get install geany
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]


ismaelmagaw

I did not notice the part of renaming the file to utf8 BOM. Did you mean to turn into utf8 in notpad and give the name of BOM to the file pt.txt !? Could you explain this part better? Thank you in advance for the help.

Gast


Gast

looks, that the intern decoder of html-entities doesnt work for any (portuguese) special chars like &ccdil; or õ etc

in the attachement the main language file without entities, pls download and unzip to your locale machine, rename the file pt.php in folder "languages" to pt.txt and copy the file from the ZIP into this folder

if you use WB 2.8.3 SP7 or WB 2.10.x, go into the info-window (Backend - Top-Menu - i-Button), scroll down and click on the link "Clear Translate Cache"

P.S.: this is only the main language file and has not so much to do with the possible language files in the Modules.

to fix the problem, open the language file(s) with a editor like notepad++, search the for Entities, started with & - ending with ;  (example: õ ) and replace it with the real char õ, save the file as utf8 BOM (see Notepad++ / Encoding)

another P.S.: if you found some errors in my file or you have time to translate the rest, pls send me the corrected file back - thanks

Gast

thanks skype i know now, that i understand the problem totally wrong. Problem are the Entities in your language file. give me some minutes to repair it

Gast

i think, that's no help for this case.  he use a utf8_mb4 encoded database and WB 2.10.0 works with the "simple" UTF8. the difference is nearly the same like our german latin1 and utf8. WB 2.10.0 use UTF8 only, not compatible to utf8_mb4 without problems.
i'm not sure about the development, but the rumors are supposed to work with utf8_mb4 in the next version

hgs

Have unfortunately found only this German post, hope it helps you
https://forum.websitebaker.org/index.php/topic,29413.msg206250.html#msg206250
Possibly even times the search in the forum use
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

ismaelmagaw

I installed update from 2.8.3 to version 2.10 of WebsiteBaker. In all the pages of the site, the words that have accentuation have lost their accents and do not give to download the files with error in the palavas, the media links have changed. I tried to switch to English and changed the language to English, but it gives the same error. I reinstalled the multi lingua module but it did not work out what I can do to solve this situation?