Copy and past html text use wrong character set - Firefox

Hello.

The source code is here : WMI query to find memory slot and installed memory on each slot

at post nbr 7

Looking at the text from firefox show nothing special.
Then I Copy the text to notepad and make some change and save to file.
Then I open the file in powershell and try to run it.
I got errors because quotes are partly english quotes and partly open/close french quote

Any help is welcome

That source code you have directed us to visit and look at is an unformatted mess.

If you want the best help, please take your code, format it using your favorite code formatting tool (FWIW, I use Visual Studio Code), and post your well-formatted code you are having trouble with, using our CODE tags, so we can examine that code without looking at lines of an "unformatted mess from 2013".

Thanks so much.

The text seen on the internet site.
When I said "seen" that mean what I see ( that mean also for my question that it is not the characters that are really copied by the copy of 'copy and past' operation ).

$strComputer = Read-Host "Enter Computer Name"
$colSlots = Get-WmiObject -Class "win32_PhysicalMemoryArray" -namespace "root\CIMV2" `
-computerName $strComputer
$colRAM = Get-WmiObject -Class "win32_PhysicalMemory" -namespace "root\CIMV2" `
-computerName $strComputer

Foreach ($objSlot In $colSlots){
     "Total Number of DIMM Slots: " + $objSlot.MemoryDevices
}
Foreach ($objRAM In $colRAM) {
     "Memory Installed: " + $objRAM.DeviceLocator
     "Memory Size: " + ($objRAM.Capacity / 1GB) + " GB"
}

Now this is the text which is really copied to the powerscript windows and give syntax error :

                         $strComputer = Read-Host �Enter Computer Name�
 $colSlots = Get-WmiObject -Class "win32_PhysicalMemoryArray" -namespace "root\CIMV2" `
 -computerName $strComputer
 $colRAM = Get-WmiObject -Class �win32_PhysicalMemory� -namespace "root\CIMV2" `
 -computerName $strComputer
 
 
 Foreach ($objSlot In $colSlots){
      "Total Number of DIMM Slots: " + $objSlot.MemoryDevices
 }
 Foreach ($objRAM In $colRAM) {
      "Memory Installed: " + $objRAM.DeviceLocator
      "Memory Size: " + ($objRAM.Capacity / 1GB) + " GB"
 }
 
 
           p { margin-bottom: 0.25cm; line-height: 115%; background: transparent }
� is decimal 8221

� is decimal 8220

Any help is welcome.