Git Product home page Git Product logo

chineseencodinganalyzer's Introduction

中文編碼解析工具

處理中文編碼問題時的方便小工具,原本寫成 Windows Form,從 2006 年開始發展,已有超過十年歷史。現在改寫成 Web 方式並開源囉~

發展沿革

程式說明

網站使用 ASP.NET Core with Vue SPA 專案範本為基礎修改(參考:Vue筆記4-Vue.js + TypeScript + ASP.NET Core)。 遇到的首要困難是原本 WinForm 版使用 System.Web.HttpUtility 處理 UrlEncode 及 UrlDecode, 在 .NET Core 已不再建議使用,故需尋找替代程式庫, 但評估過 System.Net.WebUtility、System.Web.Encodings.Web.UrlEncoder、System.Uri.EscapeDataString() 所提供方法多已回歸當代標準, 統一使用 UTF8 編碼,不像 HttpUtility.UrlEncode() 可指定 Encoding 參數,亦不支援 %uxxxx 這種 UrlEncodeUnicode() 過時編碼。 為保有過往規格,我選擇了可恥但有用的做法 - 參考 HttpUtility 原始碼,將其中的邏輯搬進專案,復刻成同名元件。

無論如何,算是把原本 WinForm 版的相同邏輯移植成網頁版,並且提供了線上版本:https://www.darkthread.net/cea,歡迎大家利用。

chineseencodinganalyzer's People

Contributors

darkthread avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.