Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

ただし、非予約文字のうち「~」(チルド)はユーザ別ホームディレクトリを表す記号として、「.」(ピリオド)は、ファイルの拡張子を区切る記号として用いられることが多いため、それら以外の用途には用いない方がよいでしょう。 また、UNIXは大文字と小文字を区別するのに対しWindowsやMacintoshはこれらを区別しないなど、OSによって扱いが異なり、問題が発生する可能性があるため、ラテン大文字(大文字アルファベット)は用いない方が安全です。 さらに、日本語の文字を含む多国語を用いる方法もありますが、特殊であり、これも問題の要因になることが多いので避けましょう。 まとめると、URIに自由かつ安全に使用できる文字は、次のとおりです。 ラテン小文字(小文字アルファベット): a~z 数字: 0~9 ハイフンマイナス: - アンダーライン: _ パーセント・エンコーディング WindowsやMaci
バイト配列として与えられた入力文字列がUTF8かどうかの判定をしたくてググったら割と上位に出てきた JavaでUTF-8の文字コードを判定する を参考にさせてもらって色々やっていたのですが上手くいかなかったので、上手くいった自分のコードを投稿。 考え方は一緒でとりあえず目的の文字コードでString(Unicode)に変換して更にgetBytesで元に戻した時バイト配列が一致するかどうかで正しく変換できていたのかどうかを判定して、正しく変換できていたのならその文字コードなのだろう、というやり方。 もちろんASCII文字列だった場合はどっちもtrueを返します。 public static boolean isUTF8(byte[] src) { try { byte[] tmp = new String(src, "UTF8").getBytes("UTF8"); return Array
This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. 7.9. unicodedata — Unicode Database¶ This module provides access to the Unicode Character Database which defines character properties for all Unicode characters. The data in this database is based on the UnicodeData.txt file version 5.2.0 w
遅ればせながらRVMを導入し、Ruby1.9.xを導入したら、「invalid multibyte char (US-ASCII)」というエラーが出た。 So Ruby 1.9 rejects to parse any file with non-ASCII characters if you don’t specify the encoding. You can do so by adding a Ruby comment at the top of the file: # encoding: utf-8 This tells the Ruby parser to interpret the file content using UTF-8 encoding. Of course, you need to specify the correct encoding (meaningly t
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く