Solve Dedecms UTF-8 First article title display words Too Short method
Cause analysis: Because the UTF-8 encoding 1 Chinese characters occupies 3 bytes, GBK occupies 2 bytes, so the original $titlelen = Attdef ($titlelen, 30) equals to 30 bytes, so it displays up to 11 characters.
Workaround:
Enter Dedecms backstage, in "template management" in "tag source management", Find arclist.lib.php, click "Edit", find "$titlelen = Attdef ($titlelen, 30); "clause, change it to 60 (I change to 60) or a larger number. Of course, you can also find the arclist.lib.php in the \include\taglib directory, and then the same method to modify, and then spread to your space.
Of course, if the title is super long then the above method may not help you, need to make a database adjustment
1, into the background-system-system settings-system basic parameters-other options-the maximum document title to the length you want to the original default is 60 (here to 200)
2, log into the database, change the database table dede_archives table Title field, the original default is 60, (here to 200).
ALTER TABLE dede_archives Change title title VARCHAR (200)
And then the above method can be used.