Questation about powershell and encoding

hi all,
sorry for my englisch . i have questaton about abou file encoding . I have file with ISO-8859-2 . But if I call in the powershell funkcion OpenText , the currentencoding is UTF8 . How i change it ? The file is large and if I try opent with get-content the
file is open about hour.... thanx
Falcon

 ISO-8859-2 is not an encoding it is a character set.  Files do not specify character sets.  Character sets are specified by a system or by a document such as an HTML or XML document.
I believe that ISO-8859-2 is the default Windows Central European character set. It is known as Latin II.  ISO-8859-1 is Latin I and is what is used in US Windows.  (See:
http://en.wikipedia.org/wiki/ISO/IEC_8859-1)
Out-File and other file creation commands have an uncoding which determines how the characters are stored.   The default for Windows 7 and later is Unicode.
Type: help out-file -parameter encoding
ISO-8859-2 can be stored in any encoding except ASCII-7 as it is only 8 bits.  Windows always stores ASCII-7 as ASCII.
All Unicode encodings can store ISO-8859-2.
Here is the ISO-8859 to Unicode  spec:
ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-2.TXT
¯\_(ツ)_/¯
I'm not sure it's a good idea to make the distinction between a character set and an encoding here.  When it comes to interpreting the bytes in a file, those two concepts are linked.  Even though Unicode encoding can be used to represent every
character that ISO-8859-2 can represent, they don't always have the same byte values.  This code outputs their 57 differences:
$iso8859_2 = [System.Text.Encoding]::GetEncoding('ISO-8859-2')
$differences = for ($isoCode = 0; $isoCode -lt 256; $isoCode++)
$isoString = $iso8859_2.GetString($isoCode)
$unicodeBytes = [System.Text.Encoding]::Unicode.GetBytes($isoString)
$unicodeCode = [System.BitConverter]::ToInt16($unicodeBytes, 0)
if ($unicodeCode -ne $isoCode)
[pscustomobject] @{
Character = $isoString
ISO8859_2_Code = $isoCode
Unicode_Code = $unicodeCode
$differences | Format-Table -AutoSize

Similar Messages

  • Basic questation about VSS and windows backup

    hi all, basic questation about backup and VSS
    Environment:
    windows 2008r2,NAS backup disk connected with iSCSI
    If i create in the windows backup server job , where i backup disk D , target is NAS disk and start it . Windows backup is requester and is created shadow copy . This shadow copy is created in the disk D or in the NAS disk ? If in the disk D is created for
    everyone application snapshot ? After created snapshot the windows backup copy data from snapshot to windowsimagebackup ? And If windows backup create different snapshot how detect which files is changed ? 
    thank you
    Falcon

    Hi,
    Windows Server Backup stores backup versions in volume shadow copies. After the data write is complete, Windows Server Backup creates a shadow copy of the volume where the backup is stored using Volume Shadow Copy Service (VSS). This shadow copy retains the
    state of the storage volume as a “backup version” or “point-in-time” of the backup and must restore using this backup version.
    You could refer to the article below to know the steps of a back up operation performs: 
    Backup Version and Space Management in Windows Server Backup
    http://blogs.technet.com/b/filecab/archive/2009/06/22/backup-version-and-space-management-in-windows-server-backup.aspx
    Windows Server Backup uses Volume Shadow Copy Service (VSS) and block-level backup technology to back up and recover your operating system, files and folders, and volumes. The Volume Shadow Copy Service is used to differentiate between backup sets, and to track
    where the various blocks are being written to within the shadow copy storage.
    For more information about the incremental backup technology, please see:
    Learn more about system image backup
    http://blogs.technet.com/b/filecab/archive/2009/10/31/learn-more-about-system-image-backup.aspx
    Backup and Recovery Issues with Windows Server 2008 (Part 2)
    http://www.windowsnetworking.com/articles-tutorials/windows-server-2008/Backup-Recovery-Issues-Windows-Server-2008-Part2.html
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Learning about Powershell and IPV6 for 70-410

    I was reading up on the 70-410 exam as I am trying to study up before I take it at the end of the month and it appears knowing Powershell and IPv6 is necessary. Alot of the links I've searched don't seem to cover how Powershell interacts with managing
    a Server 2012 R2 machine and cover things like scripting, etc. Also, I want to know how would one study IPv6 since this is also important to the exam.

    Hi Matthew,
    For IPV6 you can read:
    " http://technet.microsoft.com/en-us/library/dn610908.aspx  " 
    The best way to study PowerShell is to practice with PowerShell (i.e. Configure the Server Core). This is what I did. :)  Good Luck 
    Greets,
    Kenan
    P.s. : " Training Guide: Installing and Configuring Windows Server 2012 " is a good book that can help you for preparing for 70-410 exam 

  • Some basic questation about mbam and bitlocker

    Sorry for questation . What doing options Auto-unlock ?
    allow auto-unlock and require auto-unlock .
    and exist some construction betwen setting fixed drive and os drive . If I disable encrypting fixed drive or set only read fixed drive it mean that os drive is set to ?
    and about bitocker:
    exist solution how i enforce encrypting ? 
    thank you
    Falcon

    Recovery key and the PIN are two different protectors. PIN is something you set to unlock your machine at boot. It provides an additional protection. You can always change the PIN choosing option, bitlocker drive encryption option from control panel.
    Recovery key is to log in the machine if your machine goes into the recovery mode. If you will not be able to access your OS Drive how you will be able to boot. TPM string is called as the Ownership Hash password which is different from the recovery string
    of the OS Drive which is a 48 digit numerical password.
    Gaurav Ranjan

  • Basic questation about collation

    HI all,
    I have basic questation about create colletion . I want read and compare value from enviromnemt variables . But in the query i find "select *  from  SMS_R_System inner join SMS_G_System_ENVIRONMENT on SMS_G_System_ENVIRONMENT.ResourceId =
    SMS_R_System.ResourceId where SMS_G_System_ENVIRONMENT.VariableValue = xzy " But where is the name for this value . I want etc. variable name PUBLIC value = "c:\public"
    thanx
    Falcon

    OK, I think I follow now:
    SELECT SMS_G_System_ENVIRONMENT.ResourceId
    FROM SMS_G_System_ENVIRONMENT
    WHERE SMS_G_System_ENVIRONMENT.Name = "FP_NO_HOST_CHECK"
    AND SMS_G_System_ENVIRONMENT.VariableValue = "Yes"
    Jason | http://blog.configmgrftw.com

  • Bit Rate and Encoding

    Hey y'all--
    I've read all the posts about this, but can someone please give me a simple answer (if one exists)?
    When I format (encode) my project, I would like to start with high settings then back-off when I run out of room on the DVD. The media (aside from Menus) is a series of 3min animated films (4 now, more later). My encode settings are as follows:
    FIELD ORDER: Auto
    MODE: Two Pass VBR
    BIT RATE: 5.0
    MAX BIT RATE: 7.5
    MOTION ESTIMATION: Best
    Is this a good place to start or should I up the bit rate settings? I'm just looking for a benchmark.
    Thanks in advance.
    G4 Dual 1.25; 2gigs Ram   Mac OS X (10.4.4)  

    Did you Google for a bitrate calculator as I suggested?
    http://www.videohelp.com/calc.htm
    With an audio bitrate of 192kbps (i.e. Dolby Digital encoded by Compressor 2 or A.Pack), it tells me that 90 minutes of video should be encoded at an AVERAGE bitrate of 6.6Mbps to fill a single DVD-R.
    If you want, you can do that as a constant bitrate encode of 6.6. You can also do a two-pass VBR encode with average of 6.6 and maximum of (say) 7.5 (because as David points out again, there are issues with high bitrate playback off of DVD-Rs).
    If you want to get more on the disc, encoded at a lower average bitrate.
    If you want to split it across two discs and encode everything at a high constant bitrate, you can do that too.
    If you are going to get this disc REPLICATED and therefore not have the DVD-R playback issues, you can encode all video at 9.5Mbps and fit 40 minutes onto a DVD-5, or 80 minutes onto a DVD-9.
    Or you can lower bitrates and resolutions dramatically and fit a lot more onto a single disc.
    It completely depends on your project, your delivery requirements, and your quality requirements.

  • Questation about instaling MBAM 2.5

    Hi all ,
    i have two questation about instaling MBAM :)
    a) is possible install report server on another comtuter then MBAM server ? I want install mbam in the server a and in the server b I want have report services with report services DB
    b)if I try install Administration website the installer want ASP.NET MVC runtime . In the microsoft pages I found link and try install . but in the firts step is download and install express database why ???
    thank you for answer
    Falcon

    I had this same problem where it asked to install SQL Express.  I found a different link on Microsofts Website that did not require SQL Express, but still passed the pre-requsuite check in MBAM. 
    ASP.NET MVC 4 for Visual Studio 2010 SP1 and Visual Web Developer 2010 SP1:   http://www.microsoft.com/en-us/download/details.aspx?id=30683  
    Carl

  • Basic questation about backup SQL database

    Hi I have basic questation about backup database . If I set DPM to backup database and the database have full model and another application truncate log. Detect this dpm and create full backup or create error ?
    Falcon

    Hi,
    If you want another backup process to truncate the logs instead of DPM, you can just configure DPM to synchronize
    just before a recovery point.  That basically tells DPM to just perform express full backups which will not truncate logs.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Correlated analog and encoder readings with M-series

    Hardware: PCI-6220
    Driver: NI-DAQmx
    Software: VC++ 6.0
    My goal is to collect synchronized (correlated) analog and encoder readings to provide position-based voltage and current information.
    First question is regarding the potential alternatives and which is the best approach between these options:
    1) A single task that reads required analog and counter information into the same buffer, seems easy to align the data using this approach.
    2) A task to read analog data and a second task to read counter information, complicated by the need to reliably align the informatio from seperate buffers.
    Next question is simple: can the PCI-6220 read 2 seperate encoders?
    Hopefully, last question: where can I find documentation about where to connect A, B, and Z? So far all my searches have resulted in E series or 6602 counter examples and nothing on M series.
    Thanks, Ed

    Hi Ed,
    To answer your questions:
    >>First question is regarding the potential alternatives and which is the best approach between these options:
    >>1) A single task that reads required analog and counter information into the same buffer, seems easy to >>align the data using this approach.
    >>2) A task to read analog data and a second task to read counter information, complicated by the need to >>reliably align the informatio from seperate buffers
    First of all, option one is not actually an option because you cannot have one task acquire two different types of data (eg analog and counter data). Therefore, option two is the way to go. It is not as hard as it seems. You can use Channel Z to trigger the analag input channels and once the analog and counter channels are triggered at the same time their data will automatically be aligned.
    >>Next question is simple: can the PCI-6220 read 2 seperate encoders?
    The PCI 6220 has two 32 bit counter channels, so it is possible to read two separate encouders. Here is a link to the product data sheet for this card: http://sine.ni.com/apps/we/nioc.vp?cid=14130⟨=US
    >>Hopefully, last question: where can I find documentation about where to connect A, B, and Z? So far all my searches have resulted in E series or 6602 counter examples and nothing on M series.
    You are right, it is difficult to find out where to connect channels A, B, and Z! The easiest to find this information is to create an NI-DAQmx counter Task in MAX (Measurement and Automation Explorer). Once you have followed all of the steps to create the task you will see the task information in the middle of the screen. There will be a settings tab and inside this tab it will tell you what pins to connect A, B and Z to. I went ahead and created tasks for ctr 0 and 1 in MAX to get the information on which pins to connect to A, B, and Z.
    For ctr0: For ctr1:
    A: PFI8 PFI3
    B: PFI10 PFI11
    Z: PFI9 PFI4
    Please let me know if you have any further questions. Have a great day!
    Jennifer

  • Asking Again: Group Description Updated in Admin UI is not reflected in PowerShell and vice versa

    I've updated the Groups Description (About Me) using the GUI / Website.  Then running a script to output the Group's Description like:
    $siteUrl = "site url"
    $web = Get-SPWeb $siteUrl
    $web.SiteGroups
    $web.Dispose()
    The description doesn't change.  I can then update the Description of the group using PowerShell and close the window then and run the above code the changes are reflected.  However, the GUI / Website doesn't have the changes.  Very odd!
    raym

    Hi raym,
    Does this still work for you?
    I am rapidly losing my mind over this...
    Is there anything that you left out or perhaps assumed that Noobs (like myself) would already know or have considered? ;)
    I have tried about ten different solutions and Nothing works.
    All I get is plain text.
    Set
    Group Description to HTML via PS Script (This will explain what I have - from my original request of the same)
    Please!! If anyone can shed some light on this before I scrap SP altogether and revert back to DOS. It is the Only thing of Microsoft that actually worked. Oh! and AOE2!! ;)
    TIA,
    Neil

  • Muvo n200, lower level voice recored and encoded, and wanna configue EQ in FM m

    I read the topic about Muvo n200 for a few day. I have a problem same as all of you. My problem is I cannot hear the voice that I recorded in my lecture room. Sounds like Ohh Uhh Umm, I cannot catch the word and the sound is low level. Firstly, I think it's from the plastic cover but after I pull it out the sound is same as before I put out. And encode function is low level noise, I should recorded in high level but the sounds is very bad.
    And I don't know why I cannot configue qualizer in FM mode. I like the the sound when I configue equalizer in Music mode, but FM mode cannot. This make me disappoint very much.
    I hope a new firmware of N200 will coming soon and it should be configue my problem that I'm bore.
    the_newkung

    The microphone is quite short range.
    Sounds like EQ with the radio is a wishlist item. Hopefully one of the moderators will log it for you, or you can send it direct to support.

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • My homepage will load about 30% and then i'm dead in the water. when i close firefox it appears to close but when i try to reopen it tells me that it's already running. started with beta 6 i deleated and loaded ver 5 no change

    when i start firefox, everything starts normal then my homepage (igoogle) starts to load, gets to about 30% and stops. from there i can click on links or bookmark and a new tab will open but no page will load. i can't get anywhere. then when i close firefox it appears to close normally but when i try to reopen firefox i get a message that firefox is still running but not responding and the only way to shut it down is to reboot. when it first occured i was running beta 6 (since it became available, i also used beta 4 & beta 5) i then uninstalled beta 6 and downloaded and installed ver 5 same problem. i then did a system restore to a time before the problem.. no luck. i'm not sure what to try next. IE & chrome both work fine

    I'm in exactly the same boat - dead at blue screen, only option is to salvage using target mode.
    I don't currently have access to another Mac to do target mode. I was planning to buy a new Mac this fall anyway, though. 2 questions in preparation for that purchase:
    1) Is there anything I can do before buying a new Mac to make the salvage process more successful? ie, should I spend the time and money going to the genius bar to have them help me get from totally crippled to partially crippled? (As for expertise, I'm a proficient consumer-grade user, but Apple Support walked me through the safe-boot process, etc.)
    2) Is Apple going to provide 10.5 once it is released to people who buy a new Mac in these 6 weeks pre-release?
    Thanks for your help,
    Bailey

  • Firefox will open 4 or 5 tabs fine, but then will not load any further websites after those first 4 or 5, or allow you to refresh one of those first tabs -- including about:config and the addon page

    Firefox 5 worked fine. I installed Firefox 7, and when I ran it, tabs would just say "connecting to..." and hang. Restarting did not help. Websites open fine in IE and Chrome. Disabled all firewalls and antivirus, did not help. Uninstalled and reinstalled Firefox 5, everything worked fine again. This was using Vista 64-bit.
    Upgraded to Windows 7, uninstalled Firefox 5, installed Firefox 7, had same problem. Uninstalled Firefox 7 completely (including the profile information, I saved that information in another folder), restarted computer, and installed Firefox 7 using a completely clean profile. Did not install any add-ons, checked to make sure all plug-ins were up-to-date, and updated plugins.
    Now when I start Firefox, I can load 3 or 4 or 5 tabs fine -- after those first few tabs are open, I cannot open or refresh any other tabs -- including about:config and the add-on manager -- I have to restart Firefox. The hangup doesn't appear to be related to what websites I am attempting to open, but it looks like the number is the problem. I have run through all of the FAQ procedures, including changing the max number of network connections to 48, and the problem does not seem to go away.
    As a side note, I had this same problem when I tried to go from version 5 to version 6 as well. Version 5 is the most recent version that worked on my system.

    Can you try Aurora - download it from http://www.mozilla.org/en-US/firefox/channel/
    And let us know how it works.

  • Each time I open my computer, I get a full screen about Firefox and a toolbar that needs a yes or no answer. How do I get rid of this?

    I used to be able to press 1 button to get to my Google Home page, but now that I have downloaded the latest version of Mozilla Firefox, the "home page" is now information about Firefox and at the top of my computer, there is a question about security that needs me to say 'no' each time. I do not want to go through these steps every time I start my system.

    See these articles for some suggestions:
    *https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for

  • I cannot copy files from Macbook to Iomega hard drive

    I wanted to use my Iomega hard drive on my macbook for the first time but I cannot copy any files. Can anybody provide me with the steps I have to do to configure the Iomega (formerly used on a PC) for the Macbook? Thanks

  • How to create and share attributes or variables in Standard WebDynpro?

    Tremendous 2010 guys! I'm having trouble about a Web Dynpro ABAP application. It uses two Web Dynpro components: FITE_VC_GENERAL_DATA and FITV_VC_COST_ASSIGNMENT, and the users would like to delete showed-in-text-field default info in the first View

  • Problems converting word in PDF, graphics

    I use Acrobat X Pro and Word 2003 SP3. Photos change their size in the PDF. If the photo-size was never changed in Word, the photos stay as they were, but if the size of an inserted photo was slightly changed in word, this photo is in the PDF in its

  • ADF column footer problem

    hi all, im using Jdev 11.1.1.0.0. I have an inline table on my jspx page. I calculate the sum of one column in a managed bean. I want to display this value in table's footer section. So I added an input text to the column's footer and set the value f

  • Screen black when fully open

    my 6 year old white macbook running OS 10.6.8 will not allow me to open all the way without screen going black.  After a warm up period I can begin easing it all the way open.  What a pain!  Can it be fixed and is it worth it on a 6 year old laptop?