litesuits / litesuits/android-lite-http

这个链接请求,中文乱码!

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
817
Forks
337
PR merge metrics
No merged PRs in 30d

Description

这是地址:
http://www.sh-link.com/MagicDisc_bin/HelperDoc/helperhtml.txt

我这样请求是正常的中文:
URL url = new URL(uri);
BufferedReader reader = new BufferedReader(new InputStreamReader(url.openConnection().getInputStream(), "GBK"));

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the request to http://www.sh-link.com/MagicDisc_bin/HelperDoc/helperhtml.txt and compare LiteHttp's Chinese response with the Java URL/InputStreamReader example using GBK. Trace the request and response decoding entry points, then verify that the Chinese text is rendered correctly for this URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.