Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-3109

Failed to get networking information: "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE

    XMLWordPrintable

Details

    • Phoenix
    • 2
    • Phoenix 2022-05-11, Phoenix 2022-05-25, Phoenix 2022-06-08, Phoenix 2022-06-22
    • Needs Assessment
    • Bug Fix
    • Facter failed to collect networking information on some Windows hosts due to encoding issues.
    • Needs Assessment

    Description

      Problem

      Facter cannot obtain network information on windows (codepage 936):

      C:\Windows\system32>facter networking
      [2022-03-04 18:24:44.359844 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.374198 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.383266 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.401726 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.412167 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.420493 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.440852 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.450050 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.465984 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.475664 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.485691 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      [2022-03-04 18:24:44.496139 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
      {
        domain => "desktop",
        fqdn => "DESKTOP-QJS4564",
        hostname => "DESKTOP-QJS4564"
      }
      

      os

      C:\Windows\system32>facter os
      {
        architecture => "x64",
        family => "windows",
        hardware => "x86_64",
        name => "windows",
        release => {
          full => "10",
          major => "10"
        },
        windows => {
          edition_id => "Enterprise",
          installation_type => "Client",
          product_name => "Windows 10 Enterprise",
          release_id => "1809",
          system32 => "C:\Windows\system32"
        }
      }
      

      version

      C:\Windows\system32>facter ruby
      {
        platform => "x64-mingw32",
        sitedir => "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/2.7.0",
        version => "2.7.5"
      }
       
      C:\Windows\system32>facter --version
      4.2.7
       
      C:\Windows\system32>puppet --version
      7.14.0
      

      Attachments

        Activity

          People

            michael.hashizume Michael Hashizume
            hudsonwu HudsonWu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support