January 28, 2021 at 11:43 am
might be worth checking filenames of attachments - could also happen that someone adds a filename with special characters just in case it does not go through same code
January 28, 2021 at 3:25 pm
might be worth checking filenames of attachments - could also happen that someone adds a filename with special characters just in case it does not go through same code
Good call. I suppose an image / movie / whatever file could be named "👾.png". Thom, are you able to test that as well?
Thanks, Solomon....
SQL# — https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
Sql Quantum Lift — https://SqlQuantumLift.com/ ( company )
Sql Quantum Leap — https://SqlQuantumLeap.com/ ( blog )
Info sites — Collations • Module Signing • SQLCLR
January 28, 2021 at 5:03 pm
Yep, I amended everything I could. Noticed no loss of characters, so it appears that everything does go through that one line that you highlighted for change.
Thanks again!
Excellent. I posted the PR last night:
Prevent Unicode conversion to 8-bit code page in wp-db.php
And I just checked the schema and can't find any columns of the following datatypes:
There are only 11 date columns (technically 14, but 3 of them have a duplicate in GMT), and some appear to be non-updatable (e.g. "registered_date").
So that reduces the number of potential issues.
Looking at the schema I found other areas that should be tested, though I am not asking you, Thom, to do that as you have already tested a lot. I'm just listing them here (and will copy to the PR) as notes.
Some dates that might not have been tested:
signups
table)signups
table)registration_log
table, I think)users
table)links
table)blog_versions
table)blogs
table)
Some string columns that might not have been tested:
terms
and term_taxonomy
tables)comments
table)links
table)options
table)posts
table)users
table)signups
table)
And, yer quite welcome 🙂 .
Take care, Solomon...
SQL# — https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
Sql Quantum Lift — https://SqlQuantumLift.com/ ( company )
Sql Quantum Leap — https://SqlQuantumLeap.com/ ( blog )
Info sites — Collations • Module Signing • SQLCLR
September 14, 2021 at 3:14 pm
The PR I posted back in January ( https://github.com/ProjectNami/projectnami/pull/422 ) has recently been merged, so that makes the fix official.
Steve (or whoever from RedGate is looking at this issue): this issue of non Windows-1252 characters not saving correctly can be fixed by merely adding an upper-case "N" to the PHP code that writes the SQL to be executed. Please see my comment earlier in this thread for the specific line to look for and placement of the character:
https://www.sqlservercentral.com/forums/topic/can-post-please-be-stored-in-nvarchar#post-3818854
The point being: this issue can be fixed without needing to do a full upgrade of Project Nami. The PR was nothing more than the addition of that single character, and Thom A made this change on his system 9 months ago and has not experienced any problems.
I will also update my original forum thread here with this update, or at least a pointer to this post.
Thanks and take care, Solomon..
SQL# — https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
Sql Quantum Lift — https://SqlQuantumLift.com/ ( company )
Sql Quantum Leap — https://SqlQuantumLeap.com/ ( blog )
Info sites — Collations • Module Signing • SQLCLR
Viewing 4 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply