# Copy and past html text use wrong character set - Firefox

**URL:** <https://community.unix.com/t/copy-and-past-html-text-use-wrong-character-set-firefox/377063>\
**Category:** Shell Programming and Scripting\
**Created:** [January 20, 2020, 6:09am UTC](https://community.unix.com/t/copy-and-past-html-text-use-wrong-character-set-firefox/377063 "2020-01-20T06:09:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcdole](https://community.unix.com/user_avatar/community.unix.com/jcdole/32/2271_2.png) [@jcdole](https://community.unix.com/u/jcdole)\
**Post date:** [January 20, 2020, 6:09am UTC](https://community.unix.com/t/copy-and-past-html-text-use-wrong-character-set-firefox/377063/1 "2020-01-20T06:09:03Z")

</div>

Hello.

The source code is here : [WMI query to find memory slot and installed memory on each slot](https://social.technet.microsoft.com/Forums/ie/en-US/67388288-8a03-4a3a-a96c-6c94000252f4/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

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [January 20, 2020, 7:48am UTC](https://community.unix.com/t/copy-and-past-html-text-use-wrong-character-set-firefox/377063/2 "2020-01-20T07:48:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jcdole](https://community.unix.com/user_avatar/community.unix.com/jcdole/32/2271_2.png) [@jcdole](https://community.unix.com/u/jcdole)\
**Post date:** [January 26, 2020, 10:29am UTC](https://community.unix.com/t/copy-and-past-html-text-use-wrong-character-set-firefox/377063/3 "2020-01-26T10:29:57Z")

</div>

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 ).

```nohighlight
$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 :

```nohighlight
                         $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 }

```

```nohighlight
� is decimal 8221

� is decimal 8220

```

Any help is welcome.

---

<div class="post-metadata">

**Author:** ![system](https://community.unix.com/uploads/default/original/2X/c/c7e9e16a595259edafe88615719d5c5dcda035c2.png) [@system](https://community.unix.com/u/system)\
**Post date:** [July 30, 2020, 6:28pm UTC](https://community.unix.com/t/copy-and-past-html-text-use-wrong-character-set-firefox/377063/4 "2020-07-30T18:28:03Z")

</div>

Automatically bumped on July 30, 2020, 6:28pm UTC


