python用希伯来文字符机械化表单提交

2024-04-24 07:09:37 发布

您现在位置:Python中文网/ 问答频道 /正文

当试图提交一个有一些希伯来文字符的表单时,post请求似乎发送的是胡言乱语而不是希伯来文字符

这是post请求的一个片段:

-----------------------------172786975114076637123207688954999633792044868004090111518
Content-Disposition: form-data; name="product[spec]"


                                    <div><p><strong>����"�:</strong> X340H21G<br/><strong>��������</strong>: ���� ������ X340H21G ����� ������� �����: X342<br/><strong>������� �����: </strong>���� ������ X340H21G ��� ������ ����� �� �� 6,000 ���� ��� ����� ����� �� 5% ����� �� ����� A4<br/><strong>����� �����</strong>: ���� ������ X340H21G ���� ������ ���� ���� ������ ����</p></div>
-----------------------------172786975114076637123207688954999633792044868004090111518
Content-Disposition: form-data; name="product[product_features_attributes][0][position]"

1

如何使Mechanize以正确的字符集发送字符

谢谢


Tags: namebrdivform表单datacontentproduct