QString编码:UTF-16 QString内部保存的数据就是QChar数组,是Unicode编码(utf16),在字符显示,操作的时候都是基于Unicode。 QString构造时默认采用Latin-1编码转为Unicode保存。 所以如果字符数据不是Latin-1编码,那么就需要使用QStr ...
分类:
其他好文 时间:
2017-10-13 13:57:35
阅读次数:
182
000--Magic Poker Put the poker with specific sequence, so that they can show as below: count 1, open the first card as A, count 2, the first one place ...
分类:
其他好文 时间:
2017-09-16 11:50:57
阅读次数:
239
地址: 题目: NSUBSTR - Substrings no tags no tags You are given a string S which consists of 250000 lowercase latin letters at most. We define F(x) as the ...
分类:
其他好文 时间:
2017-09-14 16:35:28
阅读次数:
260
ISO Latin-1字符集: 	 — 制表符Horizontal tab — 换行Line feed — 回车Carriage Return   — Space ! ! — 惊叹号Exclamation mark ” " " 双引号 ...
分类:
Web程序 时间:
2017-09-05 18:57:48
阅读次数:
253
恢复内容开始 One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase letter of the Latin alphabet. Also Kefa has k f ...
分类:
其他好文 时间:
2017-08-20 21:06:47
阅读次数:
155
requests在爬取网页时候时候中文显示乱码 第一个问题是,为什么会有ISO-8859-1这样的字符集编码? iso-8859是什么? 他又被叫做Latin-1或“西欧语言” . 对于我来说,这属于requests的一个bug,在requests库的github里可以看到不只是中国人提交了这个is ...
分类:
Web程序 时间:
2017-08-19 20:12:59
阅读次数:
179
A. Generous Kefa One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase letter of the Latin alphabet. Also Ke ...
分类:
其他好文 时间:
2017-08-19 17:08:19
阅读次数:
225
A Text Volume 题面: You are given a text of single-space separated words, consisting of small and capital Latin letters. Volume of the word is number of ...
分类:
其他好文 时间:
2017-08-16 20:19:32
阅读次数:
227
本地调试好像正常,服务器运行报错: UnicodeEncodeError: 'latin-1' codec can't encode character u'\u5206' in position 2: ordinal not in range(256) 解决: conn.set_character... ...
分类:
数据库 时间:
2017-08-09 16:56:06
阅读次数:
234
UTF-8用1个字节(U+0000~U+007F)来编码所有ASCII字符,并且与ASCII字符表示是一样的,故其与ASCII兼容,但那些ISO Latin-1扩展ASCII字符集的字符(128~255)是UNICODE的子集,但不是UTF-8的子集;其他的字符UTF-8编码将需要2~4个字节,首字... ...
分类:
其他好文 时间:
2017-08-08 11:04:53
阅读次数:
218