WEBVTT

0
00:06.800 --> 00:09.110
All right, I just want to take a step back.

1
00:09.230 --> 00:11.470
I don't want you to get lost in all the detail.

2
00:11.480 --> 00:13.060
I don't want you to feel overwhelmed.

3
00:13.400 --> 00:14.600
Just remember what we've done...

4
00:14.600 --> 00:22.040
all we're doing, is we are telling the browser how to convert all the user input in the form, into binary

5
00:22.310 --> 00:22.740
code.

6
00:23.470 --> 00:26.510
Remember, a computer can only understand electrical impulses.

7
00:27.040 --> 00:31.490
As human beings, we just convert those electrical impulses to 1s and 0s.

8
00:31.820 --> 00:34.620
If there is an electrical impulse, we say it's a 1...

9
00:34.730 --> 00:36.720
and if there's nothing, we say it's a 0.

10
00:36.950 --> 00:42.050
So everything the computer understands has to be a combination of these 1s and 0s, these electrical...

11
00:42.050 --> 00:42.470
inputs.

12
00:42.620 --> 00:48.350
And with the accept-charset attribute, you have the power as the developer to define what characters...

13
00:48.350 --> 00:50.400
you want your users to write in your form.

14
00:50.780 --> 00:56.090
For example, if you don't want them to write Chinese or emojis, why not then include an accept-charset...

15
00:56.090 --> 00:58.280
attribute of ASCII...

16
00:58.280 --> 01:04.140
because we know ASCII does not recognize certain or many characters. So that's just an example.

17
01:04.160 --> 01:05.050
So there you have it.

18
01:05.060 --> 01:06.610
Just don't get lost in what we are doing.

19
01:06.620 --> 01:13.250
I know we've gone into a lot of detail on ISO, ASCII, UTF, but really all I'm trying to get across is that...

20
01:13.250 --> 01:19.470
you as a developer have a lot of power to define the characters that you want to accept on your form.

21
01:19.850 --> 01:23.690
Most of the time it really doesn't matter because you and I don't care what characters are submitted...

22
01:23.690 --> 01:24.190
in the form.

23
01:24.440 --> 01:29.600
And as we've seen, if we just leave it, the UTF-8 accept-charset attribute is the default.

24
01:29.900 --> 01:32.510
"So Clyde, why have you then given us all this detail?"

25
01:33.020 --> 01:33.470
I don't know.

26
01:33.620 --> 01:35.900
Maybe it's just another feather feather ð“†° in your cap ðŸ§¢.

27
01:37.730 --> 01:38.960
Feather. Cap. 

28
01:42.960 --> 01:47.490
So, hope you're learning a lot. I just wanted to quickly take a step back, because I know it can't seem...

29
01:47.490 --> 01:52.230
intimidating with all this, you know, character encoding types. But really, most of the time it doesn't

30
01:52.230 --> 01:52.520
matter.

31
01:52.530 --> 01:55.890
But you should be patting yourself on the back, because most developers don't even know this kind of

32
01:55.890 --> 01:56.160
stuff.

33
01:56.550 --> 01:59.730
So you really are going to be leaps and bounds ahead of everyone else.

34
02:00.420 --> 02:02.490
Without further ado, let's go on to the next lecture.