Is there a reason why the earlier lessons compile the code with lower case utf-8, and the further in lessons will count it as wrong unless it’s uppercase? it’s especially strange because as far as i can tell from my research, the meta charset tag is case-insensitive.
Just wish that would be explained a little better, or wondering if anyone had an idea why that was the case?
1 Like
Ohhhhhhh so technically both are usable, but UTF-8 is the correct name. got it, thanks!
Can you post links to the challenges you are referring to?
The specs state that it must be case insensitive, so it would be wrong to require either upper or lower case.
4.2.5 The meta
element
The charset
attribute specifies the character encoding used by the document. This is a character encoding declaration . If the attribute is present, its value must be an ASCII case-insensitive match for the string " utf-8
".
I found two
Case sensitive
Case insensitive
I can go back through, but if I’m remembering correctly, all of them after like the first or second one will not allow the code to process if it’s lower-case. Give me a few minutes and i’ll check them again
Okay yeah, so:
cat website: N/A
Cafe Menu: Step 3 (https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-basic-css-by-building-a-cafe-menu/step-3 ) Allows lowercase
Colored Markers: Step 4 (https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-colors-by-building-a-set-of-colored-markers/step-4 ) Allows lowercase
Registration Form: N/A
Rothko Painting: Step 2 (https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-the-css-box-model-by-building-a-rothko-painting/step-2 ) requires upper-case
screenshot:
all of the ones after Rothko require upper case, and the hint and step will both show it in uppercase, while the ones before project 1 show them in lower case
it’s just weird?
1 Like
I can tell there are more. Thanks for letting us know. I should open an issue for it (will check if there is anything open for it already).
Edit: Issue
opened 05:19PM - 25 May 22 UTC
type: bug
scope: curriculum
status: waiting triage
### Describe the Issue
The `UTF-8` value for `charset` is case-insensitive.
… https://html.spec.whatwg.org/multipage/semantics.html#the-meta-element
Not sure if I missed any, but here are case-sensitive ones I found.
Case sensitive
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-accessibility-by-building-a-quiz/step-2
curriculum\challenges\english\14-responsive-web-design-22\learn-accessibility-by-building-a-quiz\613297a923965e0703b64796.md
Case sensitive
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-animation-by-building-a-ferris-wheel/step-1
curriculum\challenges\english\14-responsive-web-design-22\learn-css-animation-by-building-a-ferris-wheel\6140c7e645d8e905819f1dd4.md
Case sensitive
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-intermediate-css-by-building-a-picasso-painting/step-2
curriculum\challenges\english\14-responsive-web-design-22\learn-intermediate-css-by-building-a-picasso-painting\60b69a66b6ddb80858c51579.md
Case sensitive
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-responsive-web-design-by-building-a-piano/step-2
curriculum\challenges\english\14-responsive-web-design-22\learn-responsive-web-design-by-building-a-piano\612e77aba7ca691f598feb02.md
Case sensitive
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-the-css-box-model-by-building-a-rothko-painting/step-2
curriculum\challenges\english\14-responsive-web-design-22\learn-the-css-box-model-by-building-a-rothko-painting\60a3e3396c7b40068ad6996b.md
### Affected Page
a lot
### Your code
Both are valid
```
<meta charset="UTF-8">
<meta charset="utf-8">
```
### Expected behavior
The `UTF-8` value for `charset` should be case insensitive for all challenges.
### Screenshots
_No response_
### System
- Device: [e.g. iPhone 6, Laptop]
- OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
- Browser: [e.g. Chrome, Safari]
- Version: [e.g. 22]
### Additional context
https://forum.freecodecamp.org/t/case-sensitivity-for-meta-charset-utf-8/511611
sounds good i’m actually about to open a different issue i found on the forums and have just experienced haha
Too bad we didn’t have you beta test the curriculum
honestly i would have l o v e d that lmao
there’s a lot of weird things i’ve been catching that i’m not 100% sure are supposed to be intentional or not and i’m just going through them anyway
It was in beta for some time, but I guess it wasn’t promoted as much as the release.
Anyway, better late than never, so just keep bug hunting as you see fit. You can always make a thread and ask if you have any doubts about something (bug or not).
Sounds good to me, that’s usually what i do when it seems really off haha
might do it for more minor things as just a check
system
Closed
November 24, 2022, 5:33am
13
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.