Follow TV Tropes

Following

Converting all data to UTF8 (now complete)

Go To

Hey tropers, we are about to undergo a large update to the tvtropes' database to convert the encoding. During this time the login system will be offline. You'll still be able to read TVTropes but you won't be able to post or edit anything during the conversion.

How long will the login system be down?

My most recent test run took 9 hours (my first test took 20+ hours so this is after a lot of optimizations to get down to 9 hours). ***it will now take 11 hours. see update below

Can you give me more details?

TVTropes was originally hosted on Windows' servers back in the day and all content on the site is encoded with Windows 1252 (a superset of ISO-8859-1, aka latin1).

According to the W3Tech, only 1.3% of internet traffic is ISO-8859-1. I'm guessing a large amount of that is TVTropes considering we have millions of pages defined with that charset.

The majority of the internet is encoded in UTF8. By doing this conversion it will bring us up to modern standards with the rest of the web and allow us to more easily support other languages and icons. It will also allow us to use more modern tools to help with editing such adding a WYSIWYG editor option. It will also help with code development as we often have to add special workarounds to continue to support this long deprecated charset.

Are we changing anything else?

While we have the login system offline, we are going to upgrade the edits history database table to include a sequence number. We've always wanted to do this but it could not be done while the site was online. That table has 40M+ rows of data. With this change we'll be able to make it so we can easily jump to any page when filtering to edits from a specific page or from a specific user. We have this for the forum and that's why you can jump to page 500 for example of a long running thread and not have a long delay.

When will this happen?

UPDATE: (take two) This is now scheduled for Mon Dec 5th at 8:30PM PST until Tue Dec 6th at 7:30AM

At 8:30PM PST you will be logged-off of TVTropes so make sure to save anything before that time. Once the conversion is done the next morning, I'll point the code to the new server and everyone should be auto logged in. If not, when you see the all clear announcement at the top of the page, go ahead and try logging in again.

The process will take approximately 11 hours. I had it down to 9 hours until I found examples of utf8 encoded values inside latin1 columns so I had to add some extra testing to ensure that data doesn't get double encoded in the process.

If you have any issues during the migration please send an email to thestaff@tvtropes.org

UPDATE: (complete) The migration is officially complete. It ended up taking nearly 12 hours but we got there. All data on TVTropes (hundreds of millions of rows of data) has now been converted from Latin1 to UTF8. We now have the same encoding as 99% of other websites and can support special characters and other languages. It will also allow us to build other tools such as a WYSIWYG editor.

Edited by itcdr on Dec 6th 2023 at 8:48:40 AM

kory Admin from a universe without doors (The New Guy) Relationship Status: watch?v=dQw4w9WgXcQ
Admin
#276: Dec 6th 2023 at 3:22:32 PM

Oh ok I’ll remove that one.

Now monitoring Wishlist and Bugs
Ookamikun This is going to be so much fun. (4 Score & 7 Years Ago)
This is going to be so much fun.
#277: Dec 6th 2023 at 3:28:46 PM

pokes stick

yay we're alive!

Edited by Ookamikun on Dec 6th 2023 at 7:28:54 PM

coemedypink totally non-filler title from japanifornia, los angeles (Handed A Sword) Relationship Status: The vvillage twwo-wwheeled devvice
MyFinalEdits Officially intimidated from Parts Unknown (Ten years in the joint) Relationship Status: TV Tropes ruined my love life
Officially intimidated
#279: Dec 6th 2023 at 4:04:13 PM

A bit late because I have just returned, but congrats for the conversion! [tup]cool

135 - 169 - 273 - 191 - 188 - 230 - 300
Ellipsicle Most likely 'to be' from out there Since: May, 2023 Relationship Status: I love you for psychological reasons
Most likely 'to be'
#280: Dec 6th 2023 at 4:04:29 PM

YES! Emojis work normally now so I can complete my stinger!

[Insert clever saying here]
JustNormalMusicLover Hello Since: Jun, 2022 Relationship Status: Abstaining
Hello
#281: Dec 6th 2023 at 4:29:43 PM

Not to surprise that converting a massive amount of code to UTF 8, when this website has like, errr, over 600k pages (I hope I got it right).

Anyways, the additional features should serve this website for convenience of its users wink

Everyone's got their unique qualities.
MewLettuceRush Since: Apr, 2010
#282: Dec 6th 2023 at 4:45:25 PM

Oh ok. I'm really bad at anything related to math so.

kory MOD Admin from a universe without doors (The New Guy) Relationship Status: watch?v=dQw4w9WgXcQ
Admin
#283: Dec 6th 2023 at 5:01:34 PM

Okay we just pushed up a hotfix to remove the difftype from the monospace font toggle. [tup]

Now monitoring Wishlist and Bugs
Unicorndance Logic Girl from Thames, N.Z. Since: Jul, 2015 Relationship Status: Above such petty unnecessities
Logic Girl
#284: Dec 6th 2023 at 8:22:33 PM

Sorry for any inconvenience, but... what's exactly changed? The only thing I notice that's different is an ability to change the font on the edit screen, and that'd be weird if it was the only change.

For every low there is a high.
WarJay77 Big Catch, Sparkle Edition (Troper Knight)
Big Catch, Sparkle Edition
#285: Dec 6th 2023 at 8:25:45 PM

We can use non-Roman and accented characters without fancy markup.

Currently Working On: Incorruptible Pure Pureness
Amonimus the Retromancer from <<|Wiki Talk|>> (Sergeant) Relationship Status: In another castle
the Retromancer
#286: Dec 6th 2023 at 8:38:48 PM

Nobody addressed it, but what about the secondary announced thing about giving all edits their numbers? I've assumed it means fixing troper's edit histories to include edit id, but this doesn't seem to be the case.

Edited by Amonimus on Dec 6th 2023 at 7:38:57 PM

TroperWall / WikiMagic Cleanup
kory Admin from a universe without doors (The New Guy) Relationship Status: watch?v=dQw4w9WgXcQ
Admin
#287: Dec 6th 2023 at 8:41:21 PM

[up]Yes Chris added sequence numbers to both the troper edit and edit history tables so that we can fix the speed of the queries for the ones that timeout in troper edit histories and also add pagination to article history.

Edited by kory on Dec 6th 2023 at 8:42:33 AM

Now monitoring Wishlist and Bugs
Amonimus the Retromancer from <<|Wiki Talk|>> (Sergeant) Relationship Status: In another castle
the Retromancer
#288: Dec 6th 2023 at 8:49:34 PM

[up] Meaning it's an internal setup and the related fixes will come later?

Btw I think the pinned post could use a tl;tr versiom summary since people keep asking what's different, and dunno if everything is working it could get locked in a day or two.

TroperWall / WikiMagic Cleanup
kory Admin from a universe without doors (The New Guy) Relationship Status: watch?v=dQw4w9WgXcQ
Admin
#289: Dec 6th 2023 at 9:00:22 PM

Yessir the changes will come later. Probably not too long after we get the visual editor working, that’s right after most of the editing improvements are pushed up.

Edited by kory on Dec 6th 2023 at 9:03:31 AM

Now monitoring Wishlist and Bugs
CornGodCenteotl Aztec God of Corn from Tenochitlan, Mexico Since: Oct, 2020
Aztec God of Corn
#290: Dec 6th 2023 at 9:08:12 PM

So what exactly caused this exactly? I'm not active in the forums so I'm out of the loop, did someone try to attack the site or something? I recall the whole thing with 4chan and snoot game a short while back, related or am I just paranoid?

Life is but a mask worn on the face of death
Amonimus the Retromancer from <<|Wiki Talk|>> (Sergeant) Relationship Status: In another castle
the Retromancer
#291: Dec 6th 2023 at 9:13:02 PM

[up] Are you at right thread? We did cut Snoot Game for harassment issues, but there is no relation to... allowing pasting non-English letters to articles, which is in turn necessary for the Visual Editor.

Edited by Amonimus on Dec 6th 2023 at 10:14:45 PM

TroperWall / WikiMagic Cleanup
OmegaPC777 Flashgitz's Worst Enemy... (He/him) from Maplewood, MN Since: Apr, 2021 Relationship Status: Coming soon to theaters
Flashgitz's Worst Enemy... (He/him)
#292: Dec 6th 2023 at 11:13:48 PM

[up][up]The header probably has a better explanation than what I can tell you, but I swear we weren't attacked; there was a need to convert our website to UTF 8, and the ability for tropers to be logged in had to be briefly disabled during the conversion.

Again, you have nothing to be worried about right now.smile

Edited by OmegaPC777 on Dec 7th 2023 at 2:05:02 PM

"How could you stop an idea?" (Check out my troper wall if you can!)
rjung Since: Jan, 2015
#293: Dec 6th 2023 at 11:43:21 PM

[up][up][up] The layman's explanation is that the foundation of the site was updated to comply with modern web standards and make it easier to do cool stuff in the future. We won't see any changes right away, this is setting things up for later.

(I used to do this stuff for a living, the technobabble was easy to understand)

Edited by rjung on Dec 6th 2023 at 11:43:50 AM

skewview Since: Jun, 2013
#294: Dec 7th 2023 at 12:28:57 AM

Out the gate, the biggest advantage right now is for doing non-English language editing. Though, I've not done extensive tests, it looks like automatic translations work better, as do some accessibility options (screen readers, text to speech, etc.).

AFK with issues, will return
Riolugirl Rookie Trope Repairer from whence you came, you shall remain... (Experienced Trainee) Relationship Status: It's a god-awful small affair
#295: Dec 7th 2023 at 2:21:00 AM

Unpopular opinion, but I actually prefer editing in Arial font, especially in Dark Mode. The font is more legible to me than monospace, and it's given me a few less headaches. It also reflects how the text will look on the article without having to preview it, so I can save that feature for double-checking markup.

"As long as I have my comrades with me, I can do anything!" (She/Her) (Current Focus: Cleaning Hell Is That Noise misuse)
skewview Since: Jun, 2013
#296: Dec 7th 2023 at 2:38:48 AM

I believe that is why they made a toggle, though the markup in proportional text has problems with undistinguishable quotemarks.

AFK with issues, will return
Riolugirl Rookie Trope Repairer from whence you came, you shall remain... (Experienced Trainee) Relationship Status: It's a god-awful small affair
#297: Dec 7th 2023 at 3:29:35 AM

[up]Good point, although that can easily be taken care of thanks to the toggle.

"As long as I have my comrades with me, I can do anything!" (She/Her) (Current Focus: Cleaning Hell Is That Noise misuse)
Redmess Redmess from Netherlands Since: Feb, 2014
Redmess
#298: Dec 7th 2023 at 3:44:46 AM

And to be clear, the two outages of half a day were planned and part of this update (the first one was a false start).

Optimism is a duty.
Amonimus the Retromancer from <<|Wiki Talk|>> (Sergeant) Relationship Status: In another castle
the Retromancer
#299: Dec 7th 2023 at 4:04:40 AM

I wouldn't called the second one planned, more like the first one didn't work so it was attempted again later that day.

TroperWall / WikiMagic Cleanup
Redmess Redmess from Netherlands Since: Feb, 2014
Redmess
#300: Dec 7th 2023 at 4:27:58 AM

It was still planned in the sense that a new update was planned as soon as the first one failed. It was still intended to happen.

Optimism is a duty.

Total posts: 331
Top