Comment 1 for bug 2040332

Revision history for this message
Yihong Jin (yihongjin) wrote (last edit ):

I'm interested in addressing this issue as it seems like a 'good first issue' to me — its modifications won't significantly impact other components. Before beginning, I'd like to propose and discuss a few potential solutions:

1. Manual Escape Mechanism: Implement helper functions which use a backslash (\) or another special character to indicate that the subsequent character is part of the account name, not a delimiter or line break.

Pros: Intuitive.
Cons: Maintenance-heavy and may not cover all edge cases.

2. JSON Serialization: Utilize a JSON file to manage account names and their update times. JSON inherently handles special characters, eliminating the need for an explicit escape mechanism.

Pros: Automatically handles special characters, robust against edge cases, and widely used.
Cons: The codebase of SWIFT doesn't use JSON for local status storing, primarily reserving it for network-related functions. Is this caused by some special reasons?

I look forward to discussing these options and identifying the best approach. Additionally, I'd like to make sure if there are other modules that depend on this file, as this could influence our choice of solution.

UPDATE:
Finally decided to go with URL Encoding provided by urllib as it will be a quick and robust solution. Have committed the change.