Skip to content

WebCheatSheet

The easy way to know

  • PHP
  • HTML
  • JavaScript
  • SQL
  • ASP
  • MS Access Functions
  • SaaS

Author: Sergey Kornilov

JavaScript

Validate Image Dimensions Before Upload with JavaScript

Sergey KornilovSeptember 26, 2026

Check an image file’s intrinsic width and height before upload using createImageBitmap, while keeping server-side validation as the security boundary.

HTML

Detect and Repair Double-Encoded UTF-8 Text

Sergey KornilovSeptember 26, 2026

Recognize common double-encoded UTF-8 patterns, reverse a known Windows-1252 mis-decoding in PHP, and avoid corrupting already-correct rows.

HTML

Unicode Normalization: NFC vs NFD

Sergey KornilovSeptember 26, 2026

Understand why visually identical Unicode strings can compare differently and when to normalize text to NFC or NFD in JavaScript and databases.

HTML

Fix Invalid UTF-8 Errors in JSON

Sergey KornilovSeptember 26, 2026

Find and repair malformed UTF-8 before JSON encoding in PHP, preserve error visibility, and avoid silently discarding corrupted input.

HTML

Fix Mojibake After a MySQL Migration

Sergey KornilovSeptember 26, 2026

Diagnose and repair garbled text after a MySQL migration by separating stored bytes, column metadata, connection character sets, and application output.

HTML

Convert Windows-1252 Text to UTF-8

Sergey KornilovSeptember 26, 2026

Convert Windows-1252 text and files to UTF-8 without losing smart quotes, dashes, euro signs, or other characters commonly mistaken for ISO-8859-1.

SQL

Move a MySQL Database to a New Server with Minimal Downtime

Sergey KornilovSeptember 26, 2026

Move a MySQL database with a consistent seed copy, replication catch-up, controlled cutover, validation, and a rollback window.

SQL

Convert a MySQL Database to utf8mb4 Safely

Sergey KornilovSeptember 26, 2026

Convert MySQL schemas, tables, and text columns to utf8mb4 with an inventory, explicit collation choice, index checks, and staged verification.

SQL

Fix SQL Server Certificate Chain Not Trusted Errors

Sergey KornilovSeptember 26, 2026

Fix SQL Server certificate chain not trusted connection errors by validating the server name, certificate chain, driver encryption defaults, and client trust.

SQL

Fix SQL Server Collation Conflicts Between Databases

Sergey KornilovSeptember 26, 2026

Resolve SQL Server collation conflict errors in cross-database joins, temp tables, UNION queries, and comparisons without changing more schema than necessary.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Detect a CSV Delimiter Automatically in PHP
  • Split Large CSV Files in PHP
  • Stream Large JSON Files in PHP
  • Multi-Tenant File Storage Design
  • Tenant-Specific Feature Flags in SaaS

Recent Comments

  1. HTML Meta Charset vs HTTP Content-Type Header – WebCheatSheet on HTML Character Sets List and Encoding Reference
  2. HTML Special Characters and Symbols Reference – WebCheatSheet on HTML Character Sets List and Encoding Reference
  3. Use Form Controls as Microsoft Access Query Parameters – WebCheatSheet on Access DateSerial Function
  4. Build a Secure File Upload Pipeline in PHP – WebCheatSheet on Secure File Upload with PHP
  5. Create and Convert AVIF Images with PHP – WebCheatSheet on How to Create Thumbnail Images in PHP with GD

Archives

  • September 2026
  • August 2026
  • October 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • ASP
  • HTML
  • JavaScript
  • MS Access Functions
  • PHP
  • SaaS Architecture
  • SQL
  • Uncategorized
Copyright © 2026 WebCheatSheetFresh News by Ascendoor | Powered by WordPress.