Comments (3)
The "REMOVE_FROM_RATE_NAME" in the DotNetShipping solution also changed and now has multiple variations from the USPS API.
Special characters (e.g. ™, ®) are returned in their HTML form.
OLD:
private const string REMOVE_FROM_RATE_NAME = "& l t ; s u p & g t ; & a m p ; r e g ; & l t ; / s u p & g t ; "
NEW (Suggestions):
PRIORITY MAIL ™
private const string REMOVE_FROM_RATE_NAME_PRIORITY = "& l t ; s u p & g t ; & # 8 4 8 2 ; & l t ; / s u p & g t ;"
FIRST CLASS MAIL ®
private const string REMOVE_FROM_RATE_NAME_FIRSTCLASS = "& l t ; s u p & g t ; & # 1 7 4 ; & l t ; / s u p & g t ;"
OLD:
string name = r.Name.Replace(REMOVE_FROM_RATE_NAME, string.Empty);
NEW (Suggestion):
string name = String.Empty;
if (r.Name.Contains(REMOVE_FROM_RATE_NAME_PRIORITY))
name = r.Name.Replace(REMOVE_FROM_RATE_NAME_PRIORITY, string.Empty);
if (r.Name.Contains(REMOVE_FROM_RATE_NAME_FIRSTCLASS))
name = r.Name.Replace(REMOVE_FROM_RATE_NAME_FIRSTCLASS, string.Empty);
from dotnetshipping.
Sorry, I don't know how to put the REMOVE_FROM_RATE_NAME, REMOVE_FROM_RATE_NAME_PRIORITY or REMOVE_FROM_RATE_NAME_FIRSTCLASS assignments in "blocks"? So the assignments are without the spaces.
from dotnetshipping.
Hey @Jwahr, thanks for the report! I'm not entirely sure what you're referring to here. Can you put this into a pull request so I can merge it in? Thanks so much!
Kyle
from dotnetshipping.
Related Issues (20)
- UPS International rate is not correct HOT 5
- Not able to get International rate HOT 1
- USPS rating engine does not handle 5 + 4 zip codes HOT 3
- UPS Rates Not being returned HOT 5
- SurePost not an option HOT 2
- Address in Spain does not return UPS rate HOT 3
- Get XML Request from request HOT 1
- Postal code of International address (ship-to) is not sent in request HOT 7
- UPS Saturday delivery not an option HOT 1
- Nuget package doesn't work in dot net 4.5 HOT 4
- Question: How do I get my License Number for UPS? HOT 1
- USPS: Not calculating packages total correctly when multiple packages HOT 1
- UPS - UseNegotiatedRates not working because of StateProvinceCode
- FedEx API is old
- Delivery vs Transit Times (FEDEX)
- Returning Charges even wrong postal code HOT 1
- USPS Signature Required On Delivery
- Log Requests/Responses
- USPS not returning Commitment Date / Delivery Date HOT 1
- Still being maintained? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnetshipping.