English 中文(简体)
如何通过Bugzilla REST AP向统法协会编码文本投标
原标题:How to post a bug with Unicode text via Bugzilla REST API

我在用统法协会编码文本张贴标语时便会遇到问题。

我的《网络》守则也一样。

HttpWebRequest request = BugzillaService.MakeRequest(url, "POST");
request.ContentType = "application/json;charset=utf-8";

byte[] bytes = Encoding.UTF8.GetBytes(data);
request.ContentLength = bytes.Length;

using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(bytes, 0, bytes.Length);
}

该法典与ASCII文本相当完善。

统法协会在Bugzilla网站查阅,我可以通过网站张贴与统法协会编码文本的浏览器。 但是,Bugzilla REST的服务失败了。

在Bugzilla网站或REST服务中,我是否误解了某些东西,以支持统法协会的文字?

Thanks in advance.

最佳回答

Do I miss something must be configured in Bugzilla website or REST service to support Unicode text?

Have you installed this patch?

Also, if you are using non-ASCII characters at all, you need to patch the BZ::Client module, which has an encoding bug. The patch for that is also in the patches directory.

问题回答

暂无回答




相关问题
Why are there duplicate characters in Unicode?

I can see some duplicate characters in Unicode. For example, the character C can be represented by the code points U+0043 and U+0421. Why is this so?

how to extract characters from a Korean string in VBA

Need to extract the initial character from a Korean word in MS-Excel and MS-Access. When I use Left("한글",1) it will return the first syllable i.e 한, what I need is the initial character i.e ㅎ . Is ...

File open error by using codec utf-8 in python

I execute following code on windows xp and python 2.6.4 But it show IOError. How to open file whose name has utf-8 codec. >>> open( unicode( 한글.txt , euc-kr ).encode( utf-8 ) ) Traceback ...

UnicodeEncodeError on MySQL insert in Python

I used lxml to parse some web page as below: >>> doc = lxml.html.fromstring(htmldata) >>> element in doc.cssselect(sometag)[0] >>> text = element.text_content() >>>...

Fast way to filter illegal xml unicode chars in python?

The XML specification lists a bunch of Unicode characters that are either illegal or "discouraged". Given a string, how can I remove all illegal characters from it? I came up with the following ...

热门标签